mythix-orm-postgresql 1.9.3 → 1.9.5
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.
|
@@ -11,7 +11,7 @@ const { Literals, Errors } = require('mythix-orm');
|
|
|
11
11
|
const { SQLConnectionBase } = require('mythix-orm-sql-base');
|
|
12
12
|
const PostgreSQLQueryGenerator = require('./postgresql-query-generator');
|
|
13
13
|
|
|
14
|
-
const DEFAULT_TIMEOUT_MS =
|
|
14
|
+
const DEFAULT_TIMEOUT_MS = 15000;
|
|
15
15
|
|
|
16
16
|
function sleep(ms) {
|
|
17
17
|
return new Promise((resolve) => {
|
|
@@ -294,7 +294,7 @@ class PostgreSQLConnection extends SQLConnectionBase {
|
|
|
294
294
|
}
|
|
295
295
|
|
|
296
296
|
try {
|
|
297
|
-
let result = await
|
|
297
|
+
let result = await inheritedThis.createContext(callback, inheritedThis, inheritedThis);
|
|
298
298
|
|
|
299
299
|
if (savePointName)
|
|
300
300
|
await inheritedThis.query(`RELEASE SAVEPOINT ${savePointName}`, options, client);
|
|
@@ -121,7 +121,7 @@ class PostgreSQLQueryGenerator extends SQLQueryGeneratorBase {
|
|
|
121
121
|
|
|
122
122
|
if (LiteralBase.isLiteral(distinctValue))
|
|
123
123
|
valueStr = distinctValue.toString(this.connection, { isOrder: true });
|
|
124
|
-
else if (typeof distinctValue.isField === 'function' && distinctValue.isField(distinctValue)
|
|
124
|
+
else if (typeof distinctValue.isField === 'function' && distinctValue.isField(distinctValue))
|
|
125
125
|
valueStr = this.getEscapedColumnName(distinctValue.Model, distinctValue);
|
|
126
126
|
|
|
127
127
|
if (valueStr)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mythix-orm-postgresql",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.5",
|
|
4
4
|
"description": "PostgreSQL driver for Mythix ORM",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"type": "commonjs",
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
},
|
|
34
34
|
"homepage": "https://github.com/th317erd/mythix-orm-postgresql#readme",
|
|
35
35
|
"peerDependencies": {
|
|
36
|
-
"mythix-orm": "^1.11.
|
|
37
|
-
"mythix-orm-sql-base": "^1.9.
|
|
36
|
+
"mythix-orm": "^1.11.6",
|
|
37
|
+
"mythix-orm-sql-base": "^1.9.5"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"luxon": "^3.1.0",
|