@dbml/connector 7.0.0-alpha.0 → 7.0.1-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.
package/eslint.config.ts CHANGED
@@ -54,18 +54,10 @@ export default defineConfig(
54
54
  ],
55
55
  'consistent-return': 'off',
56
56
  '@typescript-eslint/consistent-return': ['error'],
57
- '@stylistic/quotes': ['error', 'single', { 'avoidEscape': true }],
57
+ '@stylistic/quotes': ['error', 'single', { avoidEscape: true }],
58
58
  '@stylistic/max-statements-per-line': 'off',
59
59
  '@stylistic/operator-linebreak': ['error', 'before', { overrides: { '=': 'after' } }],
60
60
  },
61
- settings: {
62
- 'import/resolver': {
63
- typescript: {
64
- alwaysTryTypes: true,
65
- project: 'packages/*/{ts,js}config.json',
66
- },
67
- },
68
- },
69
61
  },
70
62
  ],
71
63
  );
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package",
3
3
  "name": "@dbml/connector",
4
- "version": "7.0.0-alpha.0",
4
+ "version": "7.0.1-alpha.0",
5
5
  "description": "This package was created to fetch the schema JSON from many kind of databases.",
6
6
  "author": "huy.phung.sw@gmail.com",
7
7
  "license": "MIT",
@@ -33,10 +33,10 @@
33
33
  "mysql2": "^3.11.0",
34
34
  "oracledb": "^6.10.0",
35
35
  "pg": "^8.12.0",
36
- "snowflake-sdk": "^2.3.3"
36
+ "snowflake-sdk": "^2.4.0"
37
37
  },
38
38
  "engines": {
39
39
  "node": ">=18"
40
40
  },
41
- "gitHead": "cb925c52bc255aa63688dc04db48f2ad5d7129c9"
41
+ "gitHead": "293c44d86dc64c67d834c00047d07bee142cbb84"
42
42
  }
@@ -1,10 +1,10 @@
1
- import { DatabaseSchema } from './types';
2
- import { fetchSchemaJson as fetchPostgresSchemaJson } from './postgres';
1
+ import { fetchSchemaJson as fetchBigQuerySchemaJson } from './bigquery';
3
2
  import { fetchSchemaJson as fetchMssqlSchemaJson } from './mssql';
4
3
  import { fetchSchemaJson as fetchMysqlSchemaJson } from './mysql';
5
- import { fetchSchemaJson as fetchSnowflakeSchemaJson } from './snowflake';
6
- import { fetchSchemaJson as fetchBigQuerySchemaJson } from './bigquery';
7
4
  import { fetchSchemaJson as fetchOracleSchemaJson } from './oracle';
5
+ import { fetchSchemaJson as fetchPostgresSchemaJson } from './postgres';
6
+ import { fetchSchemaJson as fetchSnowflakeSchemaJson } from './snowflake';
7
+ import { DatabaseSchema } from './types';
8
8
 
9
9
  const fetchSchemaJson = async (connection: string, databaseType: string): Promise<DatabaseSchema> => {
10
10
  switch (databaseType) {
@@ -1,7 +1,7 @@
1
- import { createConnection, Connection } from 'mysql2/promise';
2
1
  import { flatten } from 'lodash-es';
2
+ import { Connection, createConnection } from 'mysql2/promise';
3
3
  import {
4
- CheckConstraintDictionary, DefaultInfo, DatabaseSchema, DefaultType, Field, IndexColumn, FieldsDictionary, Table, Enum, IndexesDictionary, TableConstraintsDictionary, Index, Ref,
4
+ CheckConstraintDictionary, DatabaseSchema, DefaultInfo, DefaultType, Enum, Field, FieldsDictionary, Index, IndexColumn, IndexesDictionary, Ref, Table, TableConstraintsDictionary,
5
5
  } from '../types';
6
6
 
7
7
  const NUMBER_REGEX = '^-?[0-9]+(.[0-9]+)?$';
@@ -1,9 +1,9 @@
1
- import { getConnection, Connection } from 'oracledb';
1
+ import { Connection, getConnection } from 'oracledb';
2
2
  import { DatabaseSchema } from '../types';
3
- import { generateTablesAndFields } from './tables';
4
- import { generateRawRefs } from './refs';
5
3
  import { generateConstraints } from './constraints';
6
4
  import { generateIndexes } from './indexes';
5
+ import { generateRawRefs } from './refs';
6
+ import { generateTablesAndFields } from './tables';
7
7
  import { processEasyConnectString } from './utils';
8
8
 
9
9
  const getValidatedClient = async (username: string, password: string, dbidentifier: string): Promise<Connection> => {
@@ -7,7 +7,7 @@
7
7
  //
8
8
 
9
9
  import snowflake from 'snowflake-sdk';
10
- import type { Connection, LogLevel, ConnectionOptions } from 'snowflake-sdk';
10
+ import type { Connection, ConnectionOptions, LogLevel } from 'snowflake-sdk';
11
11
  import { parseSchema } from '../../utils/parseSchema';
12
12
  import {
13
13
  DatabaseSchema,