Commit Graph

35 Commits

Author SHA1 Message Date
1ilit
a1c60af3cd Use nanoid instead of numberic ids for fields and tables 2025-05-11 20:48:03 +04:00
1ilit
fe76229c99 Decouple ids and indecies in utils 2025-05-09 04:34:01 +04:00
1ilit
5727c629e9
Add table comment on import in mariadb and mysql (#411) 2025-04-17 18:04:55 +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
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
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
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
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
kavya_kunder
28cfe3dace Fix comment not getting imported issue 2024-08-18 01:42:04 +05:30
1ilit
07d7766fa8 Recognize many to one relationships on sql import 2024-08-06 14:33:35 +03:00
1ilit
09f9117b72 Remove unused console.logs 2024-07-08 03:39:01 +03:00
1ilit
f682abdafe Fix import index for postgres 2024-07-08 03:34:01 +03:00
1ilit
9e2bb48fb8 Fix quotes on columns in checks 2024-07-07 16:55:04 +03:00
1ilit
897c125e3b Import from mssql 2024-07-06 21:45:51 +03:00
1ilit
61d97e8143 Import implicit foreign keys 2024-07-03 03:08:53 +03:00
1ilit
dd2aafe80b Import enums from source 2024-06-30 15:38:25 +03:00
1ilit
d79b0c205d Return types after import 2024-06-27 11:12:09 +03:00
1ilit
d8128f5010 Import from postgres 2024-06-22 04:13:44 +03:00
1ilit
3f6dfe6437 Import and export to mariadb in mariadb diagrams 2024-06-16 04:54:03 +03:00
1ilit
490cb738de Convert unsupported types in generic diagrams on import 2024-06-16 01:38:22 +03:00
1ilit
0a108fc33a Import from mysql 2024-06-16 00:23:48 +03:00
1ilit
7953b7fdc0 Add hasDefault and canIncrement to types 2024-06-14 23:32:58 +03:00
1ilit
e61757f93d Import SQLite source 2024-06-14 01:00:47 +03:00
1ilit
6c1ff1518f Set up multiple imports for generic diagrams 2024-06-10 22:57:21 +03:00