dbgate-api 5.4.3 → 5.4.5-alpha.3

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "dbgate-api",
3
3
  "main": "src/index.js",
4
- "version": "5.4.3",
4
+ "version": "5.4.5-alpha.3",
5
5
  "homepage": "https://dbgate.org/",
6
6
  "repository": {
7
7
  "type": "git",
@@ -26,10 +26,10 @@
26
26
  "compare-versions": "^3.6.0",
27
27
  "cors": "^2.8.5",
28
28
  "cross-env": "^6.0.3",
29
- "dbgate-datalib": "^5.4.3",
29
+ "dbgate-datalib": "^5.4.5-alpha.3",
30
30
  "dbgate-query-splitter": "^4.10.3",
31
- "dbgate-sqltree": "^5.4.3",
32
- "dbgate-tools": "^5.4.3",
31
+ "dbgate-sqltree": "^5.4.5-alpha.3",
32
+ "dbgate-tools": "^5.4.5-alpha.3",
33
33
  "debug": "^4.3.4",
34
34
  "diff": "^5.0.0",
35
35
  "diff2html": "^3.4.13",
@@ -74,7 +74,7 @@
74
74
  "devDependencies": {
75
75
  "@types/fs-extra": "^9.0.11",
76
76
  "@types/lodash": "^4.14.149",
77
- "dbgate-types": "^5.4.3",
77
+ "dbgate-types": "^5.4.5-alpha.3",
78
78
  "env-cmd": "^10.1.0",
79
79
  "node-loader": "^1.0.2",
80
80
  "nodemon": "^2.0.2",
@@ -1,5 +1,5 @@
1
1
 
2
2
  module.exports = {
3
- version: '5.4.3',
4
- buildTime: '2024-09-06T12:21:04.738Z'
3
+ version: '5.4.5-alpha.3',
4
+ buildTime: '2024-09-13T11:12:59.530Z'
5
5
  };
@@ -115,7 +115,7 @@ async function handleDatabaseOp(op, { msgid, name }) {
115
115
  const dmp = driver.createDumper();
116
116
  dmp[op](name);
117
117
  logger.info({ sql: dmp.s }, 'Running script');
118
- await driver.query(systemConnection, dmp.s);
118
+ await driver.query(systemConnection, dmp.s, { discardResult: true });
119
119
  }
120
120
  await handleRefresh();
121
121
 
@@ -5,6 +5,14 @@ function checkLicense() {
5
5
  };
6
6
  }
7
7
 
8
+ function checkLicenseKey(key) {
9
+ return {
10
+ status: 'ok',
11
+ type: 'community',
12
+ };
13
+ }
14
+
8
15
  module.exports = {
9
16
  checkLicense,
17
+ checkLicenseKey,
10
18
  };