@mikro-orm/postgresql 7.0.0-dev.0 → 7.0.0-dev.1
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/PostgreSqlPlatform.js +4 -4
- package/package.json +6 -4
package/PostgreSqlPlatform.js
CHANGED
|
@@ -179,10 +179,10 @@ class PostgreSqlPlatform extends knex_1.AbstractSqlPlatform {
|
|
|
179
179
|
}
|
|
180
180
|
getBeginTransactionSQL(options) {
|
|
181
181
|
if (options?.isolationLevel || options?.readOnly) {
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
return [
|
|
182
|
+
let sql = 'start transaction';
|
|
183
|
+
sql += options.isolationLevel ? ` isolation level ${options.isolationLevel}` : '';
|
|
184
|
+
sql += options.readOnly ? ` read only` : '';
|
|
185
|
+
return [sql];
|
|
186
186
|
}
|
|
187
187
|
return ['begin'];
|
|
188
188
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mikro-orm/postgresql",
|
|
3
|
-
"version": "7.0.0-dev.
|
|
3
|
+
"version": "7.0.0-dev.1",
|
|
4
4
|
"description": "TypeScript ORM for Node.js based on Data Mapper, Unit of Work and Identity Map patterns. Supports MongoDB, MySQL, PostgreSQL and SQLite databases as well as usage with vanilla JavaScript.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "index.mjs",
|
|
@@ -58,16 +58,18 @@
|
|
|
58
58
|
"access": "public"
|
|
59
59
|
},
|
|
60
60
|
"dependencies": {
|
|
61
|
-
"@mikro-orm/knex": "7.0.0-dev.
|
|
61
|
+
"@mikro-orm/knex": "7.0.0-dev.1",
|
|
62
62
|
"pg": "8.13.1",
|
|
63
63
|
"postgres-array": "3.0.2",
|
|
64
64
|
"postgres-date": "2.1.0",
|
|
65
65
|
"postgres-interval": "4.0.2"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
|
-
"@mikro-orm/core": "^6.4.5"
|
|
68
|
+
"@mikro-orm/core": "^6.4.5",
|
|
69
|
+
"kysely": "https://pkg.pr.new/kysely-org/kysely/kysely@2b7007e"
|
|
69
70
|
},
|
|
70
71
|
"peerDependencies": {
|
|
71
|
-
"@mikro-orm/core": "7.0.0-dev.
|
|
72
|
+
"@mikro-orm/core": "7.0.0-dev.1",
|
|
73
|
+
"kysely": "*"
|
|
72
74
|
}
|
|
73
75
|
}
|