@dbml/connector 5.2.0 → 5.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/__tests__/connector.test.ts +1 -1
- package/__tests__/connectors/mssql/out-files/schema.json +97 -6
- package/__tests__/connectors/mysql/expect-out-files/schema.json +1 -1
- package/__tests__/connectors/mysql/out-files/schema.json +92 -2
- package/__tests__/connectors/oracle/connection.json +4 -0
- package/__tests__/connectors/oracle/expect-out-files/schema.json +3866 -0
- package/__tests__/connectors/oracle/out-files/schema.json +3866 -0
- package/__tests__/connectors/postgres/out-files/schema.json +119 -8
- package/dist/connectors/{bigqueryConnector.d.ts → bigquery/index.d.ts} +1 -1
- package/dist/connectors/{bigqueryConnector.js → bigquery/index.js} +2 -2
- package/dist/connectors/connector.js +13 -10
- package/dist/connectors/{snowflakeConnector.d.ts → mssql/index.d.ts} +1 -1
- package/dist/connectors/{mssqlConnector.js → mssql/index.js} +1 -1
- package/dist/connectors/{mysqlConnector.d.ts → mysql/index.d.ts} +1 -1
- package/dist/connectors/oracle/constraints.d.ts +7 -0
- package/dist/connectors/oracle/constraints.js +112 -0
- package/dist/connectors/oracle/index.d.ts +3 -0
- package/dist/connectors/oracle/index.js +68 -0
- package/dist/connectors/oracle/indexes.d.ts +3 -0
- package/dist/connectors/oracle/indexes.js +65 -0
- package/dist/connectors/oracle/refs.d.ts +3 -0
- package/dist/connectors/oracle/refs.js +67 -0
- package/dist/connectors/oracle/tables.d.ts +7 -0
- package/dist/connectors/oracle/tables.js +280 -0
- package/dist/connectors/oracle/utils.d.ts +9 -0
- package/dist/connectors/oracle/utils.js +27 -0
- package/dist/connectors/{mssqlConnector.d.ts → postgres/index.d.ts} +1 -1
- package/dist/connectors/{postgresConnector.js → postgres/index.js} +1 -1
- package/dist/connectors/{postgresConnector.d.ts → snowflake/index.d.ts} +1 -1
- package/dist/connectors/{snowflakeConnector.js → snowflake/index.js} +1 -1
- package/dist/connectors/types.d.ts +1 -1
- package/package.json +4 -2
- package/src/connectors/{bigqueryConnector.ts → bigquery/index.ts} +3 -3
- package/src/connectors/connector.ts +8 -5
- package/src/connectors/{mssqlConnector.ts → mssql/index.ts} +2 -2
- package/src/connectors/{mysqlConnector.ts → mysql/index.ts} +1 -1
- package/src/connectors/oracle/constraints.ts +113 -0
- package/src/connectors/oracle/index.ts +76 -0
- package/src/connectors/oracle/indexes.ts +71 -0
- package/src/connectors/oracle/refs.ts +73 -0
- package/src/connectors/oracle/tables.ts +305 -0
- package/src/connectors/oracle/utils.ts +23 -0
- package/src/connectors/{postgresConnector.ts → postgres/index.ts} +2 -2
- package/src/connectors/{snowflakeConnector.ts → snowflake/index.ts} +2 -2
- package/src/connectors/types.ts +1 -0
- package/test-output.log +0 -18
- /package/dist/connectors/{mysqlConnector.js → mysql/index.js} +0 -0
|
@@ -84,6 +84,13 @@
|
|
|
84
84
|
"value": "This table stores information about various items."
|
|
85
85
|
}
|
|
86
86
|
},
|
|
87
|
+
{
|
|
88
|
+
"name": "table_with_composite_primary_and_unique_indexes",
|
|
89
|
+
"schemaName": "dbo",
|
|
90
|
+
"note": {
|
|
91
|
+
"value": ""
|
|
92
|
+
}
|
|
93
|
+
},
|
|
87
94
|
{
|
|
88
95
|
"name": "Authors",
|
|
89
96
|
"schemaName": "dbo",
|
|
@@ -1416,6 +1423,60 @@
|
|
|
1416
1423
|
}
|
|
1417
1424
|
}
|
|
1418
1425
|
],
|
|
1426
|
+
"dbo.table_with_composite_primary_and_unique_indexes": [
|
|
1427
|
+
{
|
|
1428
|
+
"name": "col1",
|
|
1429
|
+
"type": {
|
|
1430
|
+
"type_name": "int(10)",
|
|
1431
|
+
"schemaName": null
|
|
1432
|
+
},
|
|
1433
|
+
"dbdefault": null,
|
|
1434
|
+
"not_null": true,
|
|
1435
|
+
"increment": false,
|
|
1436
|
+
"note": {
|
|
1437
|
+
"value": ""
|
|
1438
|
+
}
|
|
1439
|
+
},
|
|
1440
|
+
{
|
|
1441
|
+
"name": "col2",
|
|
1442
|
+
"type": {
|
|
1443
|
+
"type_name": "int(10)",
|
|
1444
|
+
"schemaName": null
|
|
1445
|
+
},
|
|
1446
|
+
"dbdefault": null,
|
|
1447
|
+
"not_null": true,
|
|
1448
|
+
"increment": false,
|
|
1449
|
+
"note": {
|
|
1450
|
+
"value": ""
|
|
1451
|
+
}
|
|
1452
|
+
},
|
|
1453
|
+
{
|
|
1454
|
+
"name": "col3",
|
|
1455
|
+
"type": {
|
|
1456
|
+
"type_name": "int(10)",
|
|
1457
|
+
"schemaName": null
|
|
1458
|
+
},
|
|
1459
|
+
"dbdefault": null,
|
|
1460
|
+
"not_null": false,
|
|
1461
|
+
"increment": false,
|
|
1462
|
+
"note": {
|
|
1463
|
+
"value": ""
|
|
1464
|
+
}
|
|
1465
|
+
},
|
|
1466
|
+
{
|
|
1467
|
+
"name": "col4",
|
|
1468
|
+
"type": {
|
|
1469
|
+
"type_name": "int(10)",
|
|
1470
|
+
"schemaName": null
|
|
1471
|
+
},
|
|
1472
|
+
"dbdefault": null,
|
|
1473
|
+
"not_null": false,
|
|
1474
|
+
"increment": false,
|
|
1475
|
+
"note": {
|
|
1476
|
+
"value": ""
|
|
1477
|
+
}
|
|
1478
|
+
}
|
|
1479
|
+
],
|
|
1419
1480
|
"dbo.Authors": [
|
|
1420
1481
|
{
|
|
1421
1482
|
"name": "AuthorID",
|
|
@@ -1782,7 +1843,9 @@
|
|
|
1782
1843
|
"type": "column",
|
|
1783
1844
|
"value": "product_id"
|
|
1784
1845
|
}
|
|
1785
|
-
]
|
|
1846
|
+
],
|
|
1847
|
+
"pk": false,
|
|
1848
|
+
"unique": false
|
|
1786
1849
|
}
|
|
1787
1850
|
],
|
|
1788
1851
|
"dbo.orders": [
|
|
@@ -1798,7 +1861,9 @@
|
|
|
1798
1861
|
"type": "column",
|
|
1799
1862
|
"value": "order_date"
|
|
1800
1863
|
}
|
|
1801
|
-
]
|
|
1864
|
+
],
|
|
1865
|
+
"pk": false,
|
|
1866
|
+
"unique": false
|
|
1802
1867
|
}
|
|
1803
1868
|
],
|
|
1804
1869
|
"dbo.products": [
|
|
@@ -1810,7 +1875,9 @@
|
|
|
1810
1875
|
"type": "column",
|
|
1811
1876
|
"value": "category"
|
|
1812
1877
|
}
|
|
1813
|
-
]
|
|
1878
|
+
],
|
|
1879
|
+
"pk": false,
|
|
1880
|
+
"unique": false
|
|
1814
1881
|
}
|
|
1815
1882
|
],
|
|
1816
1883
|
"dbo.users": [
|
|
@@ -1822,7 +1889,9 @@
|
|
|
1822
1889
|
"type": "column",
|
|
1823
1890
|
"value": "email"
|
|
1824
1891
|
}
|
|
1825
|
-
]
|
|
1892
|
+
],
|
|
1893
|
+
"pk": false,
|
|
1894
|
+
"unique": false
|
|
1826
1895
|
},
|
|
1827
1896
|
{
|
|
1828
1897
|
"name": "idx_users_full_name",
|
|
@@ -1832,7 +1901,9 @@
|
|
|
1832
1901
|
"type": "column",
|
|
1833
1902
|
"value": "full_name"
|
|
1834
1903
|
}
|
|
1835
|
-
]
|
|
1904
|
+
],
|
|
1905
|
+
"pk": false,
|
|
1906
|
+
"unique": false
|
|
1836
1907
|
},
|
|
1837
1908
|
{
|
|
1838
1909
|
"name": "idx_users_is_active_full_name",
|
|
@@ -1846,7 +1917,9 @@
|
|
|
1846
1917
|
"type": "column",
|
|
1847
1918
|
"value": "full_name_lower"
|
|
1848
1919
|
}
|
|
1849
|
-
]
|
|
1920
|
+
],
|
|
1921
|
+
"pk": false,
|
|
1922
|
+
"unique": false
|
|
1850
1923
|
}
|
|
1851
1924
|
]
|
|
1852
1925
|
},
|
|
@@ -1999,6 +2072,24 @@
|
|
|
1999
2072
|
"pk": true
|
|
2000
2073
|
}
|
|
2001
2074
|
},
|
|
2075
|
+
"dbo.table_with_composite_primary_and_unique_indexes": {
|
|
2076
|
+
"col1": {
|
|
2077
|
+
"checks": [],
|
|
2078
|
+
"pk": true
|
|
2079
|
+
},
|
|
2080
|
+
"col2": {
|
|
2081
|
+
"checks": [],
|
|
2082
|
+
"pk": true
|
|
2083
|
+
},
|
|
2084
|
+
"col3": {
|
|
2085
|
+
"checks": [],
|
|
2086
|
+
"unique": true
|
|
2087
|
+
},
|
|
2088
|
+
"col4": {
|
|
2089
|
+
"checks": [],
|
|
2090
|
+
"unique": true
|
|
2091
|
+
}
|
|
2092
|
+
},
|
|
2002
2093
|
"dbo.user_define_data_types": {
|
|
2003
2094
|
"id": {
|
|
2004
2095
|
"checks": [],
|
|
@@ -72,6 +72,12 @@
|
|
|
72
72
|
"value": ""
|
|
73
73
|
}
|
|
74
74
|
},
|
|
75
|
+
{
|
|
76
|
+
"name": "table_with_composite_primary_and_unique_indexes",
|
|
77
|
+
"note": {
|
|
78
|
+
"value": ""
|
|
79
|
+
}
|
|
80
|
+
},
|
|
75
81
|
{
|
|
76
82
|
"name": "users",
|
|
77
83
|
"note": {
|
|
@@ -882,6 +888,60 @@
|
|
|
882
888
|
}
|
|
883
889
|
}
|
|
884
890
|
],
|
|
891
|
+
"table_with_composite_primary_and_unique_indexes": [
|
|
892
|
+
{
|
|
893
|
+
"name": "col1",
|
|
894
|
+
"type": {
|
|
895
|
+
"type_name": "int",
|
|
896
|
+
"schemaName": null
|
|
897
|
+
},
|
|
898
|
+
"dbdefault": null,
|
|
899
|
+
"not_null": true,
|
|
900
|
+
"increment": false,
|
|
901
|
+
"note": {
|
|
902
|
+
"value": ""
|
|
903
|
+
}
|
|
904
|
+
},
|
|
905
|
+
{
|
|
906
|
+
"name": "col2",
|
|
907
|
+
"type": {
|
|
908
|
+
"type_name": "int",
|
|
909
|
+
"schemaName": null
|
|
910
|
+
},
|
|
911
|
+
"dbdefault": null,
|
|
912
|
+
"not_null": true,
|
|
913
|
+
"increment": false,
|
|
914
|
+
"note": {
|
|
915
|
+
"value": ""
|
|
916
|
+
}
|
|
917
|
+
},
|
|
918
|
+
{
|
|
919
|
+
"name": "col3",
|
|
920
|
+
"type": {
|
|
921
|
+
"type_name": "int",
|
|
922
|
+
"schemaName": null
|
|
923
|
+
},
|
|
924
|
+
"dbdefault": null,
|
|
925
|
+
"not_null": false,
|
|
926
|
+
"increment": false,
|
|
927
|
+
"note": {
|
|
928
|
+
"value": ""
|
|
929
|
+
}
|
|
930
|
+
},
|
|
931
|
+
{
|
|
932
|
+
"name": "col4",
|
|
933
|
+
"type": {
|
|
934
|
+
"type_name": "int",
|
|
935
|
+
"schemaName": null
|
|
936
|
+
},
|
|
937
|
+
"dbdefault": null,
|
|
938
|
+
"not_null": false,
|
|
939
|
+
"increment": false,
|
|
940
|
+
"note": {
|
|
941
|
+
"value": ""
|
|
942
|
+
}
|
|
943
|
+
}
|
|
944
|
+
],
|
|
885
945
|
"users": [
|
|
886
946
|
{
|
|
887
947
|
"name": "user_id",
|
|
@@ -1297,7 +1357,7 @@
|
|
|
1297
1357
|
"composite_key_1": [
|
|
1298
1358
|
{
|
|
1299
1359
|
"name": "PRIMARY",
|
|
1300
|
-
"
|
|
1360
|
+
"pk": true,
|
|
1301
1361
|
"columns": [
|
|
1302
1362
|
{
|
|
1303
1363
|
"type": "column",
|
|
@@ -1327,7 +1387,7 @@
|
|
|
1327
1387
|
"composite_key_2": [
|
|
1328
1388
|
{
|
|
1329
1389
|
"name": "PRIMARY",
|
|
1330
|
-
"
|
|
1390
|
+
"pk": true,
|
|
1331
1391
|
"columns": [
|
|
1332
1392
|
{
|
|
1333
1393
|
"type": "column",
|
|
@@ -1339,6 +1399,36 @@
|
|
|
1339
1399
|
}
|
|
1340
1400
|
]
|
|
1341
1401
|
}
|
|
1402
|
+
],
|
|
1403
|
+
"table_with_composite_primary_and_unique_indexes": [
|
|
1404
|
+
{
|
|
1405
|
+
"name": "col3",
|
|
1406
|
+
"unique": true,
|
|
1407
|
+
"columns": [
|
|
1408
|
+
{
|
|
1409
|
+
"type": "column",
|
|
1410
|
+
"value": "col3"
|
|
1411
|
+
},
|
|
1412
|
+
{
|
|
1413
|
+
"type": "column",
|
|
1414
|
+
"value": "col4"
|
|
1415
|
+
}
|
|
1416
|
+
]
|
|
1417
|
+
},
|
|
1418
|
+
{
|
|
1419
|
+
"name": "PRIMARY",
|
|
1420
|
+
"pk": true,
|
|
1421
|
+
"columns": [
|
|
1422
|
+
{
|
|
1423
|
+
"type": "column",
|
|
1424
|
+
"value": "col1"
|
|
1425
|
+
},
|
|
1426
|
+
{
|
|
1427
|
+
"type": "column",
|
|
1428
|
+
"value": "col2"
|
|
1429
|
+
}
|
|
1430
|
+
]
|
|
1431
|
+
}
|
|
1342
1432
|
]
|
|
1343
1433
|
},
|
|
1344
1434
|
"tableConstraints": {
|