@dbml/connector 3.13.0-alpha.2 → 3.13.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.
|
@@ -168,6 +168,7 @@ const generateTablesFieldsAndEnums = async (client, schemas) => {
|
|
|
168
168
|
const tablesAndFieldsSql = `
|
|
169
169
|
WITH tables_and_fields AS (
|
|
170
170
|
SELECT
|
|
171
|
+
t.object_id AS table_id,
|
|
171
172
|
s.name AS table_schema,
|
|
172
173
|
t.name AS table_name,
|
|
173
174
|
t.create_date as table_create_date,
|
|
@@ -260,6 +261,7 @@ const generateTablesFieldsAndEnums = async (client, schemas) => {
|
|
|
260
261
|
ORDER BY
|
|
261
262
|
table_schema,
|
|
262
263
|
table_create_date,
|
|
264
|
+
table_id,
|
|
263
265
|
column_id;
|
|
264
266
|
`;
|
|
265
267
|
const tablesAndFieldsResult = await client.query(tablesAndFieldsSql);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dbml/connector",
|
|
3
|
-
"version": "3.13.0
|
|
3
|
+
"version": "3.13.0",
|
|
4
4
|
"description": "This package was created to fetch the schema JSON from many kind of databases.",
|
|
5
5
|
"author": "huy.phung.sw@gmail.com",
|
|
6
6
|
"license": "MIT",
|
|
@@ -44,5 +44,5 @@
|
|
|
44
44
|
"engines": {
|
|
45
45
|
"node": ">=18"
|
|
46
46
|
},
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "4b705ec829db097bbeb21cf06b2b989cd16173b4"
|
|
48
48
|
}
|
|
@@ -215,6 +215,7 @@ const generateTablesFieldsAndEnums = async (client: sql.ConnectionPool, schemas:
|
|
|
215
215
|
const tablesAndFieldsSql = `
|
|
216
216
|
WITH tables_and_fields AS (
|
|
217
217
|
SELECT
|
|
218
|
+
t.object_id AS table_id,
|
|
218
219
|
s.name AS table_schema,
|
|
219
220
|
t.name AS table_name,
|
|
220
221
|
t.create_date as table_create_date,
|
|
@@ -307,6 +308,7 @@ const generateTablesFieldsAndEnums = async (client: sql.ConnectionPool, schemas:
|
|
|
307
308
|
ORDER BY
|
|
308
309
|
table_schema,
|
|
309
310
|
table_create_date,
|
|
311
|
+
table_id,
|
|
310
312
|
column_id;
|
|
311
313
|
`;
|
|
312
314
|
|