Commit Graph

167 Commits

Author SHA1 Message Date
1ilit
f2613139bb Fix ids and relationship names on import (#445) 2025-05-11 22:11:16 +04:00
1ilit
94226de561 Table and field drag and drop ordering (#444)
* Add dnd for tables and fields

* Fix inputs

* Decouple ids and indecies in the editor

* Decouple ids and indecies in utils

* Fix field indexes

* Use nanoid instead of numberic ids for fields and tables

* Fix review comments
2025-05-11 21:44:04 +04:00
wil wu
9ff6d50ff2 Convert heading anchors in markdown links to lowercase (#416) 2025-04-21 20:13:28 +04:00
1ilit
5727c629e9 Add table comment on import in mariadb and mysql (#411) 2025-04-17 18:04:55 +04:00
1ilit
adf647483c Switch to monaco-editor from codemirror (#403)
* switch to monaco-editor

* fix styles
2025-04-12 20:50:47 +04:00
1ilit
00e97653cb Fix template cardinalities (#404) 2025-04-12 20:37:12 +04:00
1ilit
436ab3ec33 Export saved data (#400) 2025-04-10 22:08:31 +04:00
1ilit
0efb5470ab Bulk select (#395)
* add rect for select

* collect selected elements

* increase note stroke width

* move elements and undo redo

* add icon to toolbar to toggle multiselect mode

* set bulk selected elements to none when panning
2025-04-09 01:00:20 +04:00
1ilit
3a8bb3f753 Fix markdown export (#389) 2025-04-04 20:20:28 +04:00
1ilit
5c1b2928d1 Fix oracle export and default sizes (#386) 2025-04-02 20:49:30 +04:00
Aditya
16ea2ee23c feat:Added support for exporting SQL as OracleDB SQL (#192)
* feat:Added support for exporting SQL as OracleDB SQL

* Add parser

* Import from sql

* Add beta tag

* Export from generic

* Fix export

* Add import affinity

---------

Co-authored-by: 1ilit <1ilit@proton.me>
2025-04-02 03:11:08 +04:00
1ilit
ed1d9a5b85 Fix pg type import (#380) 2025-03-29 17:22:02 +04:00
Christofer
a358b56d7e Use custom types when importing from postgresql (#261)
* 🐛 add custom enums or types when importing from postgresql

no longer defaults to blob

* allow for quoted enum/types to be correctly imported

used prettier for formatting as per contributing.md

the type/enum check is case sensitive as there is no way I found to verify if the type was declared in quotes (case-sensitive) or without (to-lowercase by postgres)
2025-03-20 22:39:49 +04:00
1ilit
eb48fa1d35 Fix syntax errors in types for pg export (#368)
* Fix syntax errors in types for pg export

* Fix syntax errors in types for generic pg export
2025-03-19 02:21:26 +04:00
1ilit
38c0a99b51 Fix column and fk constraint in dbml export (#365) 2025-03-15 23:43:49 +04:00
1ilit
0d813fc0dd Import from and export to DBML (#351)
* Add export and import functions

* Add import from dbml to control panel

* Add the import key back into locales and show import error

* Parse relationships
2025-03-01 22:24:53 +04:00
TasneemTantawy
0e19da0004 fix mermaid functionality 2025-02-03 15:20:13 +03:00
1ilit
319f3f5cf3 Update relationship naming convention(#331) 2025-01-20 21:52:26 +04:00
1ilit
f0adcf1a25 Fix import from sql for mssql 2025-01-18 16:16:13 +04:00
1ilit
2704a007b8 Fix primary key assignment from out of line PK constraints in pg 2025-01-03 20:10:50 +04:00
1ilit
f27fbaa439 Parse references in sqlite 2024-11-04 19:43:59 +04:00
1ilit
28ec12b80a Parse default casting 2024-11-03 07:58:46 +04:00
1ilit
317c3cc9ba Fix invalid sql after swapping fields (#287) 2024-11-02 11:50:01 +04:00
zhi
dcf73e6f95 Fix remaining case sensitive foreign key comparison 2024-10-27 20:27:47 +08:00
zhi
9d68dd9185 Fix foreign key comparison case sensitive
SQL keywords are case insensitive although they are often written in all caps. Object return from node-sql-parser is actually case sensitive based on the imported sql, thus "foreign key" doesn't work as expected.
2024-10-27 12:04:04 +08:00
1ilit
d208e37a41 Merge branch 'main' into main 2024-10-11 15:41:30 +04:00
1ilit
9f834dae2b Clean up 2024-10-11 15:28:17 +04:00
1ilit
7d3d1dd9e2 Merge pull request #252 from csc530/main
Fix export for enum and set types for mysql
2024-10-11 15:08:10 +04:00
Rudy Nurhadi
2bf3bd6ec1 Fix postgres auto increment primary key
Add "GENERATED BY DEFAULT AS IDENTITY" if field is auto increment
2024-10-11 14:59:44 +04:00
Rudy Nurhadi
25542b58b3 Add type size when exporting postgres 2024-10-11 07:30:57 +07:00
Rudy Nurhadi
c78245cb3a Fix postgres auto increment primary key
Add "GENERATED BY DEFAULT AS IDENTITY" if field is auto increment
2024-10-08 14:04:33 +07:00
csc530
cd873ec1ba format code
using javascript and typescript language features extension in vscode
2024-10-02 10:37:45 -04:00
csc530
9cfdecacf9 fix enum and set export syntax for mariadb 2024-10-02 10:37:00 -04:00
csc530
b37e720276 remove console log & format code 2024-10-02 10:29:04 -04:00
csc530
624bd1ed2c fix export for enum and set types for mysql 2024-10-01 21:23:45 -04:00
1ilit
9fd682ccdc Fix corrupted endFieldIds after import 2024-09-28 18:02:49 +04:00
1ilit
935900d32b Fix import from alter statements failing 2024-09-28 16:48:48 +04:00
1ilit
ff1e83b8b5 Fix import from postgres sql end field check 2024-09-28 16:26:01 +04:00
1ilit
d85be39b10 Import composite types in postgres 2024-09-27 20:30:58 +04:00
1ilit
b5e23fef20 Fix import failing on single statements (#244) 2024-09-21 21:24:56 +04:00
1ilit
6cd0a691dc Use i18n keys to store cardinality (#231) 2024-09-05 12:28:19 +04:00
1ilit
47ef0dfa82 Merge branch 'main' into share 2024-09-01 20:54:35 +04:00
1ilit
6eddfd983f Remove github token modal 2024-09-01 20:36:20 +04:00
1ilit
c03202fef0 Merge pull request #229 from LuigimonSoft/feature/LC-add-new-export-to-create-the-documentation
Add export for database documentation
2024-08-31 12:09:46 +04:00
Luis Carlos
cb6c8bcbfd fix the plus between documentationTypes and \n\n 2024-08-30 23:44:37 -04:00
Luis Carlos
fcdb872502 add if when the database has types 2024-08-29 15:08:29 -04:00
Luis Carlos
c76d2ec37c add filter if the database has types 2024-08-29 15:04:02 -04:00
1ilit
8f185bc695 Fix mysql field name not getting exported (#233) 2024-08-28 15:16:39 +04:00
1ilit
6e18b6a4f1 Fix mysql field name not getting exported 2024-08-28 15:09:50 +04:00
Luis Carlos
3dbc60636d Add enums, types and Index 2024-08-28 00:18:43 -04:00