dbgate-tools 5.1.2 → 5.1.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.
Files changed (2) hide show
  1. package/lib/SqlDumper.js +1 -1
  2. package/package.json +3 -3
package/lib/SqlDumper.js CHANGED
@@ -475,7 +475,7 @@ class SqlDumper {
475
475
  this.putCmd('^select * ^into %f ^from %f', targetName, sourceName);
476
476
  }
477
477
  truncateTable(name) {
478
- this.putCmd('^delete ^from %f', name);
478
+ this.putCmd('^truncate ^table %f', name);
479
479
  }
480
480
  dropConstraints(table, dropReferences = false) {
481
481
  if (dropReferences && this.dialect.dropForeignKey) {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "5.1.2",
2
+ "version": "5.1.3",
3
3
  "name": "dbgate-tools",
4
4
  "main": "lib/index.js",
5
5
  "typings": "lib/index.d.ts",
@@ -25,14 +25,14 @@
25
25
  ],
26
26
  "devDependencies": {
27
27
  "@types/node": "^13.7.0",
28
- "dbgate-types": "^5.1.2",
28
+ "dbgate-types": "^5.1.3",
29
29
  "jest": "^24.9.0",
30
30
  "ts-jest": "^25.2.1",
31
31
  "typescript": "^4.4.3"
32
32
  },
33
33
  "dependencies": {
34
34
  "dbgate-query-splitter": "^4.9.0",
35
- "dbgate-sqltree": "^5.1.2",
35
+ "dbgate-sqltree": "^5.1.3",
36
36
  "debug": "^4.3.4",
37
37
  "json-stable-stringify": "^1.0.1",
38
38
  "lodash": "^4.17.21",