velocious 1.0.34 → 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.34",
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": "^11.1.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 {v4 as uuidv4} from "uuid"
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${uuidv4().replaceAll("-", "")}`
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 {v4 as uuidv4} from "uuid"
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${uuidv4().replaceAll("-", "")}`.substring(0, 32)
208
+ return `sp${new UUID(4).format().replaceAll("-", "")}`.substring(0, 32)
209
209
  }
210
210
 
211
211
  updateSql({conditions, data, tableName}) {
@@ -14,9 +14,9 @@ export default class VelociousDatabaseQueryAlterTableBase extends QueryBase {
14
14
  const sqls = []
15
15
 
16
16
  for (const column of this.columns) {
17
- let sql = `ALTER TABLE ${this.driver.quoteTable(this.tableName)} ADD `
17
+ let sql = `ALTER TABLE ${this.getOptions().quoteTableName(this.tableName)} ADD `
18
18
 
19
- sql += this.driver.quoteColumn(column.getName())
19
+ sql += this.getOptions().quoteColumnName(column.getName())
20
20
 
21
21
  sqls.push(sql)
22
22
  }