@dbml/connector 3.13.9-alpha.0 → 3.14.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__/connectors/bigquery/out-files/schema.json +565 -0
- package/__tests__/connectors/mssql/out-files/schema.json +187 -5
- package/__tests__/connectors/mysql/out-files/schema.json +1557 -0
- package/__tests__/connectors/postgres/out-files/schema.json +1774 -0
- package/dist/connectors/bigqueryConnector.js +41 -22
- package/dist/connectors/types.d.ts +2 -2
- package/dist/utils/credential-loader.js +23 -18
- package/package.json +2 -2
- package/src/connectors/bigqueryConnector.ts +71 -44
- package/src/connectors/types.ts +2 -2
- package/src/utils/credential-loader.ts +29 -23
|
@@ -97,6 +97,27 @@
|
|
|
97
97
|
"note": {
|
|
98
98
|
"value": ""
|
|
99
99
|
}
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"name": "AddressInfo",
|
|
103
|
+
"schemaName": "dbo",
|
|
104
|
+
"note": {
|
|
105
|
+
"value": ""
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"name": "AddressInfo2",
|
|
110
|
+
"schemaName": "dbo",
|
|
111
|
+
"note": {
|
|
112
|
+
"value": ""
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"name": "TestDescriptionTable",
|
|
117
|
+
"schemaName": "dbo",
|
|
118
|
+
"note": {
|
|
119
|
+
"value": "This is the custom comment name on table."
|
|
120
|
+
}
|
|
100
121
|
}
|
|
101
122
|
],
|
|
102
123
|
"fields": {
|
|
@@ -454,7 +475,7 @@
|
|
|
454
475
|
{
|
|
455
476
|
"name": "status",
|
|
456
477
|
"type": {
|
|
457
|
-
"type_name": "
|
|
478
|
+
"type_name": "chk_status_status",
|
|
458
479
|
"schemaName": "dbo"
|
|
459
480
|
},
|
|
460
481
|
"dbdefault": {
|
|
@@ -1141,7 +1162,7 @@
|
|
|
1141
1162
|
},
|
|
1142
1163
|
"dbdefault": {
|
|
1143
1164
|
"type": "string",
|
|
1144
|
-
"value": "<Books>\
|
|
1165
|
+
"value": "<Books>\n <Book>\n <Title>The Great Gatsby</Title>\n <Author>F. Scott Fitzgerald</Author>\n <Year>1925</Year>\n <Price>10.99</Price>\n <Publisher>Scribner</Publisher>\n <Location>New York</Location>\n <Genre>Fiction</Genre>\n <Subgenre>Classic</Subgenre>\n </Book>\n <Book>\n <Title>1984</Title>\n <Author>George Orwell</Author>\n <Year>1949</Year>\n <Price>8.99</Price>\n <Publisher>Secker & Warburg</Publisher>\n <Location>London</Location>\n <Genre>Dystopian</Genre>\n <Subgenre>Political Fiction</Subgenre>\n </Book>\n </Books>"
|
|
1145
1166
|
},
|
|
1146
1167
|
"not_null": false,
|
|
1147
1168
|
"increment": false,
|
|
@@ -1275,7 +1296,7 @@
|
|
|
1275
1296
|
{
|
|
1276
1297
|
"name": "gender",
|
|
1277
1298
|
"type": {
|
|
1278
|
-
"type_name": "
|
|
1299
|
+
"type_name": "chk_gender_gender",
|
|
1279
1300
|
"schemaName": "dbo"
|
|
1280
1301
|
},
|
|
1281
1302
|
"dbdefault": null,
|
|
@@ -1515,11 +1536,121 @@
|
|
|
1515
1536
|
"value": ""
|
|
1516
1537
|
}
|
|
1517
1538
|
}
|
|
1539
|
+
],
|
|
1540
|
+
"dbo.AddressInfo": [
|
|
1541
|
+
{
|
|
1542
|
+
"name": "AddressID",
|
|
1543
|
+
"type": {
|
|
1544
|
+
"type_name": "CK_Address_Valid_AddressID_AddressFormatID",
|
|
1545
|
+
"schemaName": "dbo"
|
|
1546
|
+
},
|
|
1547
|
+
"dbdefault": null,
|
|
1548
|
+
"not_null": true,
|
|
1549
|
+
"increment": false,
|
|
1550
|
+
"note": {
|
|
1551
|
+
"value": ""
|
|
1552
|
+
}
|
|
1553
|
+
},
|
|
1554
|
+
{
|
|
1555
|
+
"name": "AddressFormatID",
|
|
1556
|
+
"type": {
|
|
1557
|
+
"type_name": "CK_Address_Valid_AddressID_AddressFormatID",
|
|
1558
|
+
"schemaName": "dbo"
|
|
1559
|
+
},
|
|
1560
|
+
"dbdefault": null,
|
|
1561
|
+
"not_null": true,
|
|
1562
|
+
"increment": false,
|
|
1563
|
+
"note": {
|
|
1564
|
+
"value": ""
|
|
1565
|
+
}
|
|
1566
|
+
}
|
|
1567
|
+
],
|
|
1568
|
+
"dbo.AddressInfo2": [
|
|
1569
|
+
{
|
|
1570
|
+
"name": "A1",
|
|
1571
|
+
"type": {
|
|
1572
|
+
"type_name": "CK_Address_Valid2_A1",
|
|
1573
|
+
"schemaName": "dbo"
|
|
1574
|
+
},
|
|
1575
|
+
"dbdefault": null,
|
|
1576
|
+
"not_null": true,
|
|
1577
|
+
"increment": false,
|
|
1578
|
+
"note": {
|
|
1579
|
+
"value": ""
|
|
1580
|
+
}
|
|
1581
|
+
},
|
|
1582
|
+
{
|
|
1583
|
+
"name": "A2",
|
|
1584
|
+
"type": {
|
|
1585
|
+
"type_name": "CK_Address_Valid2_A2_A3",
|
|
1586
|
+
"schemaName": "dbo"
|
|
1587
|
+
},
|
|
1588
|
+
"dbdefault": null,
|
|
1589
|
+
"not_null": true,
|
|
1590
|
+
"increment": false,
|
|
1591
|
+
"note": {
|
|
1592
|
+
"value": ""
|
|
1593
|
+
}
|
|
1594
|
+
},
|
|
1595
|
+
{
|
|
1596
|
+
"name": "A3",
|
|
1597
|
+
"type": {
|
|
1598
|
+
"type_name": "CK_Address_Valid2_A2_A3",
|
|
1599
|
+
"schemaName": "dbo"
|
|
1600
|
+
},
|
|
1601
|
+
"dbdefault": null,
|
|
1602
|
+
"not_null": true,
|
|
1603
|
+
"increment": false,
|
|
1604
|
+
"note": {
|
|
1605
|
+
"value": ""
|
|
1606
|
+
}
|
|
1607
|
+
},
|
|
1608
|
+
{
|
|
1609
|
+
"name": "A4",
|
|
1610
|
+
"type": {
|
|
1611
|
+
"type_name": "CK_Address_Valid2_A4",
|
|
1612
|
+
"schemaName": "dbo"
|
|
1613
|
+
},
|
|
1614
|
+
"dbdefault": null,
|
|
1615
|
+
"not_null": true,
|
|
1616
|
+
"increment": false,
|
|
1617
|
+
"note": {
|
|
1618
|
+
"value": ""
|
|
1619
|
+
}
|
|
1620
|
+
}
|
|
1621
|
+
],
|
|
1622
|
+
"dbo.TestDescriptionTable": [
|
|
1623
|
+
{
|
|
1624
|
+
"name": "Id",
|
|
1625
|
+
"type": {
|
|
1626
|
+
"type_name": "int(10)",
|
|
1627
|
+
"schemaName": null
|
|
1628
|
+
},
|
|
1629
|
+
"dbdefault": null,
|
|
1630
|
+
"not_null": false,
|
|
1631
|
+
"increment": false,
|
|
1632
|
+
"note": {
|
|
1633
|
+
"value": "Primary key identifier."
|
|
1634
|
+
}
|
|
1635
|
+
},
|
|
1636
|
+
{
|
|
1637
|
+
"name": "Name",
|
|
1638
|
+
"type": {
|
|
1639
|
+
"type_name": "nvarchar(100)",
|
|
1640
|
+
"schemaName": null
|
|
1641
|
+
},
|
|
1642
|
+
"dbdefault": null,
|
|
1643
|
+
"not_null": false,
|
|
1644
|
+
"increment": false,
|
|
1645
|
+
"note": {
|
|
1646
|
+
"value": "Name of the entity."
|
|
1647
|
+
}
|
|
1648
|
+
}
|
|
1518
1649
|
]
|
|
1519
1650
|
},
|
|
1520
1651
|
"enums": [
|
|
1521
1652
|
{
|
|
1522
|
-
"name": "
|
|
1653
|
+
"name": "chk_status_status",
|
|
1523
1654
|
"schemaName": "dbo",
|
|
1524
1655
|
"values": [
|
|
1525
1656
|
{
|
|
@@ -1540,7 +1671,7 @@
|
|
|
1540
1671
|
]
|
|
1541
1672
|
},
|
|
1542
1673
|
{
|
|
1543
|
-
"name": "
|
|
1674
|
+
"name": "chk_gender_gender",
|
|
1544
1675
|
"schemaName": "dbo",
|
|
1545
1676
|
"values": [
|
|
1546
1677
|
{
|
|
@@ -1553,6 +1684,57 @@
|
|
|
1553
1684
|
"name": "Male"
|
|
1554
1685
|
}
|
|
1555
1686
|
]
|
|
1687
|
+
},
|
|
1688
|
+
{
|
|
1689
|
+
"name": "CK_Address_Valid_AddressID_AddressFormatID",
|
|
1690
|
+
"schemaName": "dbo",
|
|
1691
|
+
"values": [
|
|
1692
|
+
{
|
|
1693
|
+
"name": "176029FA-D6D3-49E1-A48C-000000000002"
|
|
1694
|
+
},
|
|
1695
|
+
{
|
|
1696
|
+
"name": "176029FA-D6D3-49E1-A48C-000000000001"
|
|
1697
|
+
}
|
|
1698
|
+
]
|
|
1699
|
+
},
|
|
1700
|
+
{
|
|
1701
|
+
"name": "CK_Address_Valid2_A1",
|
|
1702
|
+
"schemaName": "dbo",
|
|
1703
|
+
"values": [
|
|
1704
|
+
{
|
|
1705
|
+
"name": "333"
|
|
1706
|
+
},
|
|
1707
|
+
{
|
|
1708
|
+
"name": "2222"
|
|
1709
|
+
},
|
|
1710
|
+
{
|
|
1711
|
+
"name": "1111"
|
|
1712
|
+
}
|
|
1713
|
+
]
|
|
1714
|
+
},
|
|
1715
|
+
{
|
|
1716
|
+
"name": "CK_Address_Valid2_A2_A3",
|
|
1717
|
+
"schemaName": "dbo",
|
|
1718
|
+
"values": [
|
|
1719
|
+
{
|
|
1720
|
+
"name": "2222"
|
|
1721
|
+
},
|
|
1722
|
+
{
|
|
1723
|
+
"name": "1111"
|
|
1724
|
+
}
|
|
1725
|
+
]
|
|
1726
|
+
},
|
|
1727
|
+
{
|
|
1728
|
+
"name": "CK_Address_Valid2_A4",
|
|
1729
|
+
"schemaName": "dbo",
|
|
1730
|
+
"values": [
|
|
1731
|
+
{
|
|
1732
|
+
"name": "3333"
|
|
1733
|
+
},
|
|
1734
|
+
{
|
|
1735
|
+
"name": "2222"
|
|
1736
|
+
}
|
|
1737
|
+
]
|
|
1556
1738
|
}
|
|
1557
1739
|
],
|
|
1558
1740
|
"refs": [
|