@deterministic-code/datasources-postgres 0.1.3 → 0.1.4
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/connection.js +1 -1
- package/package.json +2 -2
package/dist/connection.js
CHANGED
|
@@ -52,7 +52,7 @@ export class PostgresConnection {
|
|
|
52
52
|
this.isOpen = false;
|
|
53
53
|
}
|
|
54
54
|
[Symbol.asyncDispose] = () => this.close();
|
|
55
|
-
async startTransaction(isolation = IsolationLevel.
|
|
55
|
+
async startTransaction(isolation = IsolationLevel.ReadCommitted) {
|
|
56
56
|
this.ensureOpen();
|
|
57
57
|
await this.exec(`BEGIN ISOLATION LEVEL ${isoSql(isolation)}`);
|
|
58
58
|
return new PostgresTransaction(this, isolation);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deterministic-code/datasources-postgres",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.js",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"access": "public"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@deterministic-code/datasources": "^0.1.
|
|
21
|
+
"@deterministic-code/datasources": "^0.1.4",
|
|
22
22
|
"@types/pg": "^8.15.5",
|
|
23
23
|
"pg": "^8.16.0",
|
|
24
24
|
"pg-query-stream": "^4.17.0"
|