velocious 1.0.35 → 1.0.36
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
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"velocious": "bin/velocious.js"
|
|
4
4
|
},
|
|
5
5
|
"name": "velocious",
|
|
6
|
-
"version": "1.0.
|
|
6
|
+
"version": "1.0.36",
|
|
7
7
|
"main": "index.js",
|
|
8
8
|
"scripts": {
|
|
9
9
|
"test": "jasmine",
|
|
@@ -42,9 +42,9 @@
|
|
|
42
42
|
"escape-string-regexp": "^1.0.5",
|
|
43
43
|
"incorporator": "^1.0.2",
|
|
44
44
|
"inflection": "^3.0.0",
|
|
45
|
+
"pure-uuid": "^1.8.1",
|
|
45
46
|
"sql-escape-string": "^1.1.0",
|
|
46
47
|
"sql.js": "^1.12.0",
|
|
47
|
-
"strftime": "^0.10.2"
|
|
48
|
-
"uuid": "^12.0.0"
|
|
48
|
+
"strftime": "^0.10.2"
|
|
49
49
|
}
|
|
50
50
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {Logger} from "../../logger.js"
|
|
2
2
|
import Query from "../query/index.js"
|
|
3
3
|
import Handler from "../handler.js"
|
|
4
|
-
import
|
|
4
|
+
import UUID from "pure-uuid"
|
|
5
5
|
|
|
6
6
|
export default class VelociousDatabaseDriversBase {
|
|
7
7
|
constructor(config, configuration) {
|
|
@@ -183,7 +183,7 @@ export default class VelociousDatabaseDriversBase {
|
|
|
183
183
|
}
|
|
184
184
|
|
|
185
185
|
generateSavePointName() {
|
|
186
|
-
return `sp${
|
|
186
|
+
return `sp${new UUID(4).format().replaceAll("-", "")}`
|
|
187
187
|
}
|
|
188
188
|
|
|
189
189
|
async startSavePoint(savePointName) {
|
|
@@ -12,7 +12,7 @@ import mssql from "mssql"
|
|
|
12
12
|
import QueryParser from "./query-parser.js"
|
|
13
13
|
import Table from "./table.js"
|
|
14
14
|
import Update from "./sql/update.js"
|
|
15
|
-
import
|
|
15
|
+
import UUID from "pure-uuid"
|
|
16
16
|
|
|
17
17
|
export default class VelociousDatabaseDriversMssql extends Base{
|
|
18
18
|
async connect() {
|
|
@@ -205,7 +205,7 @@ export default class VelociousDatabaseDriversMssql extends Base{
|
|
|
205
205
|
}
|
|
206
206
|
|
|
207
207
|
generateSavePointName() {
|
|
208
|
-
return `sp${
|
|
208
|
+
return `sp${new UUID(4).format().replaceAll("-", "")}`.substring(0, 32)
|
|
209
209
|
}
|
|
210
210
|
|
|
211
211
|
updateSql({conditions, data, tableName}) {
|