@saltcorn/postgres 1.3.1-beta.3 → 1.3.1-beta.6
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/package.json +2 -2
- package/postgres.js +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@saltcorn/postgres",
|
|
3
|
-
"version": "1.3.1-beta.
|
|
3
|
+
"version": "1.3.1-beta.6",
|
|
4
4
|
"description": "Postgres structures for Saltcorn, open-source no-code platform",
|
|
5
5
|
"homepage": "https://saltcorn.com",
|
|
6
6
|
"scripts": {
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"license": "MIT",
|
|
13
13
|
"main": "index.js",
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@saltcorn/db-common": "1.3.1-beta.
|
|
15
|
+
"@saltcorn/db-common": "1.3.1-beta.6",
|
|
16
16
|
"@saltcorn/plain-date": "0.1.4",
|
|
17
17
|
"pg": "^8.13.1",
|
|
18
18
|
"pg-copy-streams": "^6.0.6",
|
package/postgres.js
CHANGED
|
@@ -597,7 +597,7 @@ const withTransaction = async (f, onError) => {
|
|
|
597
597
|
}
|
|
598
598
|
};
|
|
599
599
|
|
|
600
|
-
const
|
|
600
|
+
const commitAndBeginNewTransaction = async () => {
|
|
601
601
|
const client = await getClient();
|
|
602
602
|
sql_log("COMMIT;");
|
|
603
603
|
await client.query("COMMIT;");
|
|
@@ -669,7 +669,7 @@ const postgresExports = {
|
|
|
669
669
|
truncate,
|
|
670
670
|
withTransaction,
|
|
671
671
|
tryCatchInTransaction,
|
|
672
|
-
|
|
672
|
+
commitAndBeginNewTransaction,
|
|
673
673
|
};
|
|
674
674
|
|
|
675
675
|
module.exports = (getConnectObjectPara) => {
|