mythix-orm-postgresql 1.3.1 → 1.4.0

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.
@@ -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.1",
3
+ "version": "1.4.0",
4
4
  "description": "PostgreSQL driver for Mythix ORM",
5
5
  "main": "lib/index.js",
6
6
  "type": "commonjs",
@@ -33,18 +33,18 @@
33
33
  },
34
34
  "homepage": "https://github.com/th317erd/mythix-orm-postgresql#readme",
35
35
  "peerDependencies": {
36
- "mythix-orm": "^1.4.5",
37
- "mythix-orm-sql-base": "^1.3.1"
36
+ "mythix-orm": "^1.5.0",
37
+ "mythix-orm-sql-base": "^1.4.0"
38
38
  },
39
39
  "dependencies": {
40
40
  "nife": "^1.11.3",
41
- "pg": "^8.7.3",
41
+ "pg": "^8.8.0",
42
42
  "pg-format": "^1.0.4",
43
43
  "uuid": "^8.3.2"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@spothero/eslint-plugin-spothero": "github:spothero/eslint-plugin-spothero",
47
- "eslint": "^8.13.0",
47
+ "eslint": "^8.22.0",
48
48
  "jasmine": "^4.3.0",
49
49
  "moment": "^2.29.4",
50
50
  "nyc": "^15.1.0"