mythix-orm-postgresql 1.3.3 → 1.4.2
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/lib/postgresql-connection.js +13 -0
- package/package.json +3 -3
|
@@ -302,6 +302,19 @@ class PostgreSQLConnection extends SQLConnectionBase {
|
|
|
302
302
|
return 'TIMESTAMP';
|
|
303
303
|
}
|
|
304
304
|
|
|
305
|
+
// eslint-disable-next-line no-unused-vars
|
|
306
|
+
_numericTypeToString(type) {
|
|
307
|
+
return `NUMERIC(${type.precision}, ${type.scale})`;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
// eslint-disable-next-line no-unused-vars
|
|
311
|
+
_realTypeToString(type) {
|
|
312
|
+
if ((type.length || 0) <= 4)
|
|
313
|
+
return 'REAL';
|
|
314
|
+
else
|
|
315
|
+
return 'DOUBLE PRECISION';
|
|
316
|
+
}
|
|
317
|
+
|
|
305
318
|
async average(_queryEngine, _field, options) {
|
|
306
319
|
let result = await super.average(_queryEngine, _field, options);
|
|
307
320
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mythix-orm-postgresql",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.2",
|
|
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.
|
|
37
|
-
"mythix-orm-sql-base": "^1.
|
|
36
|
+
"mythix-orm": "^1.5.2",
|
|
37
|
+
"mythix-orm-sql-base": "^1.4.2"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"nife": "^1.11.3",
|