@evershop/postgres-query-builder
Advanced tools
Comparing version 1.0.3 to 1.0.5
11
index.js
@@ -602,5 +602,2 @@ const uniqid = require('uniqid'); | ||
let { rows } = await connection.query({ text: sql, values: binding }); | ||
if (releaseConnection) { | ||
release(connection); | ||
} | ||
return rows; | ||
@@ -615,7 +612,8 @@ } catch (e) { | ||
} else { | ||
if (releaseConnection) { | ||
release(connection); | ||
} | ||
throw e; | ||
} | ||
} finally { | ||
if (releaseConnection) { | ||
release(connection); | ||
} | ||
} | ||
@@ -1022,2 +1020,3 @@ } | ||
await connection.query('ROLLBACK'); | ||
connection.INTRANSACTION = false; | ||
connection.release(); | ||
@@ -1024,0 +1023,0 @@ } |
{ | ||
"name": "@evershop/postgres-query-builder", | ||
"version": "1.0.3", | ||
"version": "1.0.5", | ||
"description": "A PostgreSQL query builder for NodeJS", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
30835
970