mythix-orm-postgresql 1.8.1 → 1.9.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.
@@ -76,11 +76,11 @@ class PostgreSQLConnection extends SQLConnectionBase {
76
76
  },
77
77
  options,
78
78
  {
79
- statement_timeout: options.statementTimeout || DEFAULT_TIMEOUT_MS,
80
- query_timeout: options.queryTimeout || DEFAULT_TIMEOUT_MS,
81
- connectionTimeoutMillis: options.connectionTimeout || 60000,
82
- idle_in_transaction_session_timeout: options.idleTransactionTimeout,
83
- max: options.maxPoolConnections,
79
+ statement_timeout: options.statementTimeout || DEFAULT_TIMEOUT_MS,
80
+ query_timeout: options.queryTimeout || DEFAULT_TIMEOUT_MS,
81
+ connectionTimeoutMillis: options.connectionTimeout || 60000,
82
+ idle_in_transaction_session_timeout: options.idleTransactionTimeout,
83
+ max: options.maxPoolConnections,
84
84
  },
85
85
  );
86
86
 
@@ -194,8 +194,8 @@ class PostgreSQLConnection extends SQLConnectionBase {
194
194
 
195
195
  if (logger && options.logResponse) {
196
196
  logger.log('QUERY RESULT: ', {
197
- columns: (result.fields) ? result.fields.map((field) => field.name) : [],
198
- result: (result.rows) ? result.rows : result,
197
+ columns: (result.fields) ? result.fields.map((field) => field.name) : [],
198
+ result: (result.rows) ? result.rows : result,
199
199
  });
200
200
  }
201
201
 
@@ -220,8 +220,8 @@ class PostgreSQLConnection extends SQLConnectionBase {
220
220
  return result;
221
221
 
222
222
  return {
223
- rows: result.rows,
224
- columns: result.fields.map((field) => field.name),
223
+ rows: result.rows,
224
+ columns: result.fields.map((field) => field.name),
225
225
  };
226
226
  }
227
227
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mythix-orm-postgresql",
3
- "version": "1.8.1",
3
+ "version": "1.9.0",
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.10.2",
37
- "mythix-orm-sql-base": "^1.8.0"
36
+ "mythix-orm": "^1.11.0",
37
+ "mythix-orm-sql-base": "^1.9.0"
38
38
  },
39
39
  "dependencies": {
40
40
  "luxon": "^3.1.0",