@dbml/connector 3.9.5 → 3.9.7-alpha.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.
Files changed (53) hide show
  1. package/.babelrc +0 -0
  2. package/LICENSE +0 -0
  3. package/README.md +0 -0
  4. package/__tests__/connector.test.ts +0 -0
  5. package/__tests__/connectors/mssql/connection.json +0 -0
  6. package/__tests__/connectors/mssql/expect-out-files/schema.json +0 -0
  7. package/__tests__/connectors/mysql/connection.json +0 -0
  8. package/__tests__/connectors/mysql/expect-out-files/schema.json +0 -0
  9. package/__tests__/connectors/postgres/connection.json +0 -0
  10. package/__tests__/connectors/postgres/expect-out-files/schema.json +0 -0
  11. package/dist/connectors/bigqueryConnector.d.ts +0 -0
  12. package/dist/connectors/bigqueryConnector.js +0 -0
  13. package/dist/connectors/connector.d.ts +0 -0
  14. package/dist/connectors/connector.js +0 -0
  15. package/dist/connectors/mssqlConnector.d.ts +0 -0
  16. package/dist/connectors/mssqlConnector.js +0 -0
  17. package/dist/connectors/mysqlConnector.d.ts +0 -0
  18. package/dist/connectors/mysqlConnector.js +0 -0
  19. package/dist/connectors/postgresConnector.d.ts +0 -0
  20. package/dist/connectors/postgresConnector.js +1 -1
  21. package/dist/connectors/snowflakeConnector.d.ts +0 -0
  22. package/dist/connectors/snowflakeConnector.js +0 -0
  23. package/dist/connectors/types.d.ts +0 -0
  24. package/dist/connectors/types.js +0 -0
  25. package/dist/index.d.ts +0 -0
  26. package/dist/index.js +0 -0
  27. package/dist/utils/credential-loader.d.ts +0 -0
  28. package/dist/utils/credential-loader.js +0 -0
  29. package/dist/utils/helpers.d.ts +0 -0
  30. package/dist/utils/helpers.js +0 -0
  31. package/dist/utils/parseSchema.d.ts +0 -0
  32. package/dist/utils/parseSchema.js +0 -0
  33. package/jest.config.ts +0 -0
  34. package/jestHelpers.ts +0 -0
  35. package/package.json +2 -2
  36. package/src/connectors/bigqueryConnector.ts +0 -0
  37. package/src/connectors/connector.ts +0 -0
  38. package/src/connectors/mssqlConnector.ts +0 -0
  39. package/src/connectors/mysqlConnector.ts +0 -0
  40. package/src/connectors/postgresConnector.ts +1 -1
  41. package/src/connectors/snowflakeConnector.ts +0 -0
  42. package/src/connectors/types.ts +0 -0
  43. package/src/ddl_samples/bigquery.sql +0 -0
  44. package/src/ddl_samples/snowflake.sql +0 -0
  45. package/src/index.ts +0 -0
  46. package/src/utils/credential-loader.ts +0 -0
  47. package/src/utils/helpers.ts +0 -0
  48. package/src/utils/parseSchema.ts +0 -0
  49. package/tsconfig.json +0 -0
  50. package/__tests__/connectors/bigquery/out-files/schema.json +0 -565
  51. package/__tests__/connectors/mssql/out-files/schema.json +0 -1858
  52. package/__tests__/connectors/mysql/out-files/schema.json +0 -1390
  53. package/__tests__/connectors/postgres/out-files/schema.json +0 -1774
package/.babelrc CHANGED
File without changes
package/LICENSE CHANGED
File without changes
package/README.md CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -114,7 +114,7 @@ const generateTablesAndFields = async (client, schemas) => {
114
114
  -- see https://www.postgresql.org/docs/14/catalog-pg-class.html#:~:text=%3D%20temporary%20table-,relkind,-char
115
115
  pc.relkind = 'r'
116
116
  AND pn.nspname NOT IN ('pg_catalog', 'information_schema', 'pg_toast')
117
- ${(0, parseSchema_1.buildSchemaQuery)('t.table_schema', schemas)}
117
+ ${(0, parseSchema_1.buildSchemaQuery)('pn.nspname', schemas)}
118
118
  )
119
119
  SELECT
120
120
  t.table_schema,
File without changes
File without changes
File without changes
File without changes
package/dist/index.d.ts CHANGED
File without changes
package/dist/index.js CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
package/jest.config.ts CHANGED
File without changes
package/jestHelpers.ts CHANGED
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dbml/connector",
3
- "version": "3.9.5",
3
+ "version": "3.9.7-alpha.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",
@@ -40,5 +40,5 @@
40
40
  "engines": {
41
41
  "node": ">=18"
42
42
  },
43
- "gitHead": "d63ebd60bc967a794cd093ecb712b3a15a149783"
43
+ "gitHead": "459732f65cd87e233862b7568971997436885dad"
44
44
  }
File without changes
File without changes
File without changes
File without changes
@@ -152,7 +152,7 @@ const generateTablesAndFields = async (client: Client, schemas: string[]): Promi
152
152
  -- see https://www.postgresql.org/docs/14/catalog-pg-class.html#:~:text=%3D%20temporary%20table-,relkind,-char
153
153
  pc.relkind = 'r'
154
154
  AND pn.nspname NOT IN ('pg_catalog', 'information_schema', 'pg_toast')
155
- ${buildSchemaQuery('t.table_schema', schemas)}
155
+ ${buildSchemaQuery('pn.nspname', schemas)}
156
156
  )
157
157
  SELECT
158
158
  t.table_schema,
File without changes
File without changes
File without changes
File without changes
package/src/index.ts CHANGED
File without changes
File without changes
File without changes
File without changes
package/tsconfig.json CHANGED
File without changes