proto.io 0.0.149 → 0.0.150
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/dist/adapters/file/database.d.ts +2 -2
- package/dist/adapters/file/filesystem.d.ts +2 -2
- package/dist/adapters/file/google-cloud-storage.d.ts +2 -2
- package/dist/adapters/storage/progres.d.ts +4 -1
- package/dist/adapters/storage/progres.js +7 -1
- package/dist/adapters/storage/progres.js.map +1 -1
- package/dist/adapters/storage/progres.mjs +7 -1
- package/dist/adapters/storage/progres.mjs.map +1 -1
- package/dist/client.d.ts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +1 -1
- package/dist/internals/{index-DnREUbmG.d.ts → index-013pxZ3P.d.ts} +2 -1
- package/dist/internals/index-013pxZ3P.d.ts.map +1 -0
- package/dist/internals/{index-CKgKjs8z.d.ts → index-CsRN32Jf.d.ts} +2 -2
- package/dist/internals/index-CsRN32Jf.d.ts.map +1 -0
- package/dist/internals/{index-BuXVzVd8.d.ts → index-CyX8Lu9K.d.ts} +2 -2
- package/dist/internals/index-CyX8Lu9K.d.ts.map +1 -0
- package/package.json +1 -1
- package/dist/internals/index-BuXVzVd8.d.ts.map +0 -1
- package/dist/internals/index-CKgKjs8z.d.ts.map +0 -1
- package/dist/internals/index-DnREUbmG.d.ts.map +0 -1
|
@@ -2531,7 +2531,13 @@ class PostgresStorageTransaction extends PostgresStorageClient {
|
|
|
2531
2531
|
return this._selectLock;
|
|
2532
2532
|
}
|
|
2533
2533
|
atomic(callback, options) {
|
|
2534
|
-
|
|
2534
|
+
if (!options?.retry)
|
|
2535
|
+
return callback(this);
|
|
2536
|
+
return this.withTransaction(async (conn) => {
|
|
2537
|
+
if (options?.lockTable)
|
|
2538
|
+
await conn.lockTable(options.lockTable, true);
|
|
2539
|
+
return callback(conn);
|
|
2540
|
+
});
|
|
2535
2541
|
}
|
|
2536
2542
|
async withTransaction(callback) {
|
|
2537
2543
|
const transaction = new PostgresStorageTransaction(this._driver, this.counter + 1, this._selectLock);
|