dbmodel 6.7.1 → 6.7.2

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 (2) hide show
  1. package/bin/dbmodel.js +14 -1
  2. package/package.json +11 -11
package/bin/dbmodel.js CHANGED
@@ -35,6 +35,12 @@ program
35
35
  .option('-u, --user <user>', 'user name')
36
36
  .option('-p, --password <password>', 'password')
37
37
  .option('-d, --database <database>', 'database name')
38
+ .option('--url <url>', 'database url')
39
+ .option('--file <file>', 'database file')
40
+ .option('--socket-path <socketPath>', 'socket path')
41
+ .option('--service-name <serviceName>', 'service name (for Oracle)')
42
+ .option('--auth-type <authType>', 'authentication type')
43
+ .option('--use-ssl', 'use SSL connection')
38
44
  .option('--auto-index-foreign-keys', 'automatically adds indexes to all foreign keys')
39
45
  .option(
40
46
  '--load-data-condition <condition>',
@@ -48,7 +54,7 @@ program
48
54
  .command('deploy <modelFolder>')
49
55
  .description('Deploys model to database')
50
56
  .action(modelFolder => {
51
- const { engine, server, user, password, database, transaction } = program.opts();
57
+ const { engine, server, user, password, database, url, file, transaction } = program.opts();
52
58
  // const hooks = [];
53
59
  // if (program.autoIndexForeignKeys) hooks.push(dbmodel.hooks.autoIndexForeignKeys);
54
60
 
@@ -60,6 +66,13 @@ program
60
66
  user,
61
67
  password,
62
68
  database,
69
+ databaseUrl: url,
70
+ useDatabaseUrl: !!url,
71
+ databaseFile: file,
72
+ socketPath: program.socketPath,
73
+ serviceName: program.serviceName,
74
+ authType: program.authType,
75
+ useSsl: program.useSsl,
63
76
  },
64
77
  modelFolder,
65
78
  useTransaction: transaction,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dbmodel",
3
- "version": "6.7.1",
3
+ "version": "6.7.2",
4
4
  "homepage": "https://dbgate.org/",
5
5
  "repository": {
6
6
  "type": "git",
@@ -30,16 +30,16 @@
30
30
  ],
31
31
  "dependencies": {
32
32
  "commander": "^10.0.0",
33
- "dbgate-api": "^6.7.1",
34
- "dbgate-plugin-csv": "^6.7.1",
35
- "dbgate-plugin-excel": "^6.7.1",
36
- "dbgate-plugin-mongo": "^6.7.1",
37
- "dbgate-plugin-mssql": "^6.7.1",
38
- "dbgate-plugin-mysql": "^6.7.1",
39
- "dbgate-plugin-postgres": "^6.7.1",
40
- "dbgate-plugin-xml": "^6.7.1",
41
- "dbgate-plugin-oracle": "^6.7.1",
42
- "dbgate-web": "^6.7.1",
33
+ "dbgate-api": "^6.7.2",
34
+ "dbgate-plugin-csv": "^6.7.2",
35
+ "dbgate-plugin-excel": "^6.7.2",
36
+ "dbgate-plugin-mongo": "^6.7.2",
37
+ "dbgate-plugin-mssql": "^6.7.2",
38
+ "dbgate-plugin-mysql": "^6.7.2",
39
+ "dbgate-plugin-postgres": "^6.7.2",
40
+ "dbgate-plugin-xml": "^6.7.2",
41
+ "dbgate-plugin-oracle": "^6.7.2",
42
+ "dbgate-web": "^6.7.2",
43
43
  "dotenv": "^16.0.0",
44
44
  "pinomin": "^1.0.5"
45
45
  }