@dbml/cli 3.13.5 → 3.13.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.
@@ -26,7 +26,7 @@ CREATE TABLE "users" (
26
26
  "name" varchar,
27
27
  "pjs" job_status,
28
28
  "pjs2" job_status,
29
- "pg" schemaB.gender,
29
+ "pg" "schemaB".gender,
30
30
  "pg2" gender
31
31
  );
32
32
 
@@ -40,7 +40,7 @@ CREATE TABLE "ecommerce"."users" (
40
40
  "name" varchar,
41
41
  "ejs" job_status,
42
42
  "ejs2" job_status,
43
- "eg" schemaB.gender,
43
+ "eg" "schemaB".gender,
44
44
  "eg2" gender
45
45
  );
46
46
 
package/lib/cli/config.js CHANGED
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
- var _default = {
7
+ var _default = exports.default = {
8
8
  mysql: {
9
9
  name: 'MySQL'
10
10
  },
@@ -26,5 +26,4 @@ var _default = {
26
26
  snowflake: {
27
27
  name: 'Snowflake'
28
28
  }
29
- };
30
- exports.default = _default;
29
+ };
@@ -13,7 +13,7 @@ var _utils = require("./utils");
13
13
  var _outputConsolePlugin = _interopRequireDefault(require("./outputPlugins/outputConsolePlugin"));
14
14
  var _outputFilePlugin = _interopRequireDefault(require("./outputPlugins/outputFilePlugin"));
15
15
  var _logger = _interopRequireDefault(require("../helpers/logger"));
16
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
16
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
17
17
  async function connectionHandler(program) {
18
18
  try {
19
19
  const {
package/lib/cli/export.js CHANGED
@@ -15,7 +15,7 @@ var _outputFilePlugin = _interopRequireDefault(require("./outputPlugins/outputFi
15
15
  var _config = _interopRequireDefault(require("./config"));
16
16
  var _logger = _interopRequireDefault(require("../helpers/logger"));
17
17
  var _errors = require("../errors");
18
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
18
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
19
19
  async function exportHandler(program) {
20
20
  try {
21
21
  const inputPaths = (0, _utils.resolvePaths)(program.args);
package/lib/cli/import.js CHANGED
@@ -15,7 +15,7 @@ var _outputConsolePlugin = _interopRequireDefault(require("./outputPlugins/outpu
15
15
  var _outputFilePlugin = _interopRequireDefault(require("./outputPlugins/outputFilePlugin"));
16
16
  var _logger = _interopRequireDefault(require("../helpers/logger"));
17
17
  var _errors = require("../errors");
18
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
18
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
19
19
  async function importHandler(program) {
20
20
  try {
21
21
  const inputPaths = (0, _utils.resolvePaths)(program.args);
package/lib/cli/index.js CHANGED
@@ -11,7 +11,7 @@ var _import = _interopRequireDefault(require("./import"));
11
11
  var _export = _interopRequireDefault(require("./export"));
12
12
  var _connector = _interopRequireDefault(require("./connector"));
13
13
  var _package = _interopRequireDefault(require("../../package.json"));
14
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
14
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
15
15
  /* eslint-disable max-len */
16
16
 
17
17
  function showHelp(args) {
@@ -9,5 +9,4 @@ class OutputConsolePlugin {
9
9
  console.log(content);
10
10
  }
11
11
  }
12
- var _default = OutputConsolePlugin;
13
- exports.default = _default;
12
+ var _default = exports.default = OutputConsolePlugin;
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
  var _fs = _interopRequireDefault(require("fs"));
8
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
8
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
9
9
  class OutputFilePlugin {
10
10
  constructor(filePath, header) {
11
11
  this.filePath = filePath;
@@ -25,5 +25,4 @@ class OutputFilePlugin {
25
25
  this.stream.write(content);
26
26
  }
27
27
  }
28
- var _default = OutputFilePlugin;
29
- exports.default = _default;
28
+ var _default = exports.default = OutputFilePlugin;
package/lib/cli/utils.js CHANGED
@@ -12,7 +12,7 @@ var _path2 = _interopRequireDefault(require("path"));
12
12
  var _fs = _interopRequireDefault(require("fs"));
13
13
  var _core = require("@dbml/core");
14
14
  var _lodash = require("lodash");
15
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
16
16
  function resolvePaths(paths) {
17
17
  if (!Array.isArray(paths)) {
18
18
  return _path2.default.resolve(process.cwd(), paths);
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.validateFilePlugin = validateFilePlugin;
7
7
  var _fs = _interopRequireDefault(require("fs"));
8
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
8
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
9
9
  function validateFilePlugin(_path) {
10
10
  const stat = _fs.default.statSync(_path);
11
11
  if (stat.isDirectory(_path)) {
@@ -12,5 +12,4 @@ class DomainError extends Error {
12
12
  Error.captureStackTrace(this, this.constructor);
13
13
  }
14
14
  }
15
- var _default = DomainError;
16
- exports.default = _default;
15
+ var _default = exports.default = DomainError;
@@ -17,4 +17,4 @@ Object.defineProperty(exports, "SyntaxError", {
17
17
  });
18
18
  var _domainError = _interopRequireDefault(require("./domainError"));
19
19
  var _syntaxError = _interopRequireDefault(require("./syntaxError"));
20
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
20
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = void 0;
7
7
  var _lodash = _interopRequireDefault(require("lodash"));
8
8
  var _domainError = _interopRequireDefault(require("./domainError"));
9
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
9
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
10
10
  class SyntaxError extends _domainError.default {
11
11
  constructor(fileName, rootError = {}) {
12
12
  let message = `You have a syntax error at "${fileName}"`;
@@ -20,5 +20,4 @@ class SyntaxError extends _domainError.default {
20
20
  super(message, rootError);
21
21
  }
22
22
  }
23
- var _default = SyntaxError;
24
- exports.default = _default;
23
+ var _default = exports.default = SyntaxError;
@@ -7,7 +7,7 @@ exports.default = void 0;
7
7
  var _winston = require("winston");
8
8
  var _chalk = _interopRequireDefault(require("chalk"));
9
9
  var _path = _interopRequireDefault(require("path"));
10
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
10
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
11
11
  /* eslint-disable import/no-import-module-exports */
12
12
 
13
13
  const {
@@ -73,5 +73,4 @@ const logger = {
73
73
  lvl(msg);
74
74
  }
75
75
  };
76
- var _default = logger;
77
- exports.default = _default;
76
+ var _default = exports.default = logger;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dbml/cli",
3
- "version": "3.13.5",
3
+ "version": "3.13.7-alpha.0",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "license": "Apache-2.0",
@@ -26,8 +26,8 @@
26
26
  ],
27
27
  "dependencies": {
28
28
  "@babel/cli": "^7.21.0",
29
- "@dbml/connector": "^3.13.5",
30
- "@dbml/core": "^3.13.5",
29
+ "@dbml/connector": "^3.13.7-alpha.0",
30
+ "@dbml/core": "^3.13.7-alpha.0",
31
31
  "bluebird": "^3.5.5",
32
32
  "chalk": "^2.4.2",
33
33
  "commander": "^2.20.0",
@@ -55,7 +55,7 @@
55
55
  "^.+\\.js$": "babel-jest"
56
56
  }
57
57
  },
58
- "gitHead": "7496d9e42bdd83b9605fe620234433afca3f0d37",
58
+ "gitHead": "b75ba3ddb06e870cf797392398c6037c03904284",
59
59
  "engines": {
60
60
  "node": ">=18"
61
61
  }
package/dbml-error.log DELETED
File without changes
package/snowflake.log DELETED
@@ -1,40 +0,0 @@
1
- {"level":"INFO","message":"[2:41:02.780 PM]: Connecting to GLOBAL Snowflake domain"}
2
- {"level":"INFO","message":"[2:41:02.791 PM]: Trying to initialize Easy Logging"}
3
- {"level":"INFO","message":"[2:41:02.795 PM]: No client config file found in default directories"}
4
- {"level":"INFO","message":"[2:41:02.795 PM]: Easy Logging is disabled as no config has been found"}
5
- {"level":"INFO","message":"[2:44:10.270 PM]: Connecting to GLOBAL Snowflake domain"}
6
- {"level":"INFO","message":"[2:44:10.278 PM]: Trying to initialize Easy Logging"}
7
- {"level":"INFO","message":"[2:44:10.282 PM]: No client config file found in default directories"}
8
- {"level":"INFO","message":"[2:44:10.282 PM]: Easy Logging is disabled as no config has been found"}
9
- {"level":"INFO","message":"[2:46:21.789 PM]: Connecting to GLOBAL Snowflake domain"}
10
- {"level":"INFO","message":"[2:46:21.797 PM]: Trying to initialize Easy Logging"}
11
- {"level":"INFO","message":"[2:46:21.802 PM]: No client config file found in default directories"}
12
- {"level":"INFO","message":"[2:46:21.802 PM]: Easy Logging is disabled as no config has been found"}
13
- {"level":"INFO","message":"[2:46:44.282 PM]: Connecting to GLOBAL Snowflake domain"}
14
- {"level":"INFO","message":"[2:46:44.290 PM]: Trying to initialize Easy Logging"}
15
- {"level":"INFO","message":"[2:46:44.293 PM]: No client config file found in default directories"}
16
- {"level":"INFO","message":"[2:46:44.294 PM]: Easy Logging is disabled as no config has been found"}
17
- {"level":"INFO","message":"[3:56:57.050 PM]: Configuring logger with level: 2, filePath: undefined, additionalLogToConsole: false"}
18
- {"level":"INFO","message":"[3:56:57.052 PM]: Creating new connection object"}
19
- {"level":"INFO","message":"[3:56:57.054 PM]: Creating Connection[id: 4a76e06f-c97f-4423-a6dd-c4f135e83b45] with host: holistics.ap-southeast-2.snowflakecomputing.com, account: holistics, accessUrl: https://holistics.ap-southeast-2.snowflakecomputing.com, user: HOLISTICS_USER, role: undefined, database: HDEMO, schema: undefined, warehouse: DEMO_WH, proxy was not configured, password is not provided, region: ap-southeast-2, authenticator: SNOWFLAKE_JWT, ocsp mode: FAIL_OPEN, os: darwin, os version: 24.3.0"}
20
- {"level":"INFO","message":"[3:56:57.055 PM]: Connection[id: 4a76e06f-c97f-4423-a6dd-c4f135e83b45] additional details: passcode in password is provided, passcode is not provided, private key is not provided, application: undefined, client name: snowflake-sdk, client version: 2.0.3, retry timeout: 300, private key path: pk.p8, private key pass is not provided, client store temporary credential: false, browser response timeout: 120000"}
21
- {"level":"INFO","message":"[3:56:57.055 PM]: Connection[id: 4a76e06f-c97f-4423-a6dd-c4f135e83b45] - connection object created successfully."}
22
- {"level":"INFO","message":"[3:56:57.055 PM]: Connection[id: 4a76e06f-c97f-4423-a6dd-c4f135e83b45] - connecting. Associated Snowflake domain: GLOBAL"}
23
- {"level":"INFO","message":"[3:56:57.060 PM]: Connection[id: 4a76e06f-c97f-4423-a6dd-c4f135e83b45] - authentication successful using: SNOWFLAKE_JWT"}
24
- {"level":"INFO","message":"[3:56:57.060 PM]: Trying to initialize Easy Logging"}
25
- {"level":"INFO","message":"[3:56:57.062 PM]: No client config detected."}
26
- {"level":"INFO","message":"[3:56:57.062 PM]: No config file path found. Client config will not be used."}
27
- {"level":"INFO","message":"[3:56:57.062 PM]: Easy Logging is disabled as no config has been found"}
28
- {"level":"INFO","message":"[3:56:57.064 PM]: Connection[id: 4a76e06f-c97f-4423-a6dd-c4f135e83b45] - connected successfully after 8.873000000000047 milliseconds"}
29
- {"level":"INFO","message":"[4:02:56.933 PM]: Configuring logger with level: 2, filePath: undefined, additionalLogToConsole: false"}
30
- {"level":"INFO","message":"[4:02:56.935 PM]: Creating new connection object"}
31
- {"level":"INFO","message":"[4:02:56.937 PM]: Creating Connection[id: 4f2875a6-d0c4-4f0e-966b-89edec68d3b2] with host: holistics.ap-southeast-2.snowflakecomputing.com, account: holistics, accessUrl: https://holistics.ap-southeast-2.snowflakecomputing.com, user: HOLISTICS_USER, role: undefined, database: HDEMO, schema: undefined, warehouse: DEMO_WH, proxy was not configured, password is not provided, region: ap-southeast-2, authenticator: SNOWFLAKE_JWT, ocsp mode: FAIL_OPEN, os: darwin, os version: 24.3.0"}
32
- {"level":"INFO","message":"[4:02:56.937 PM]: Connection[id: 4f2875a6-d0c4-4f0e-966b-89edec68d3b2] additional details: passcode in password is provided, passcode is not provided, private key is not provided, application: undefined, client name: snowflake-sdk, client version: 2.0.3, retry timeout: 300, private key path: pk.p8, private key pass is not provided, client store temporary credential: false, browser response timeout: 120000"}
33
- {"level":"INFO","message":"[4:02:56.937 PM]: Connection[id: 4f2875a6-d0c4-4f0e-966b-89edec68d3b2] - connection object created successfully."}
34
- {"level":"INFO","message":"[4:02:56.938 PM]: Connection[id: 4f2875a6-d0c4-4f0e-966b-89edec68d3b2] - connecting. Associated Snowflake domain: GLOBAL"}
35
- {"level":"INFO","message":"[4:02:56.942 PM]: Connection[id: 4f2875a6-d0c4-4f0e-966b-89edec68d3b2] - authentication successful using: SNOWFLAKE_JWT"}
36
- {"level":"INFO","message":"[4:02:56.942 PM]: Trying to initialize Easy Logging"}
37
- {"level":"INFO","message":"[4:02:56.944 PM]: No client config detected."}
38
- {"level":"INFO","message":"[4:02:56.944 PM]: No config file path found. Client config will not be used."}
39
- {"level":"INFO","message":"[4:02:56.944 PM]: Easy Logging is disabled as no config has been found"}
40
- {"level":"INFO","message":"[4:02:56.946 PM]: Connection[id: 4f2875a6-d0c4-4f0e-966b-89edec68d3b2] - connected successfully after 8.150915999999938 milliseconds"}