@deterministic-code/datasources-mysql 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
|
@@ -45,7 +45,7 @@ export class MysqlConnection {
|
|
|
45
45
|
this.isOpen = false;
|
|
46
46
|
}
|
|
47
47
|
[Symbol.asyncDispose] = () => this.close();
|
|
48
|
-
async startTransaction(isolation = IsolationLevel.
|
|
48
|
+
async startTransaction(isolation = IsolationLevel.ReadCommitted) {
|
|
49
49
|
this.ensureOpen();
|
|
50
50
|
const client = this.require();
|
|
51
51
|
await client.query(`SET TRANSACTION ISOLATION LEVEL ${isoSql(isolation)}`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deterministic-code/datasources-mysql",
|
|
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
|
"mysql2": "^3.14.0"
|
|
23
23
|
}
|
|
24
24
|
}
|