@travetto/model-sql 8.0.0-alpha.31 → 8.0.0-alpha.33
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/README.md +2 -2
- package/package.json +8 -8
- package/src/connection.ts +3 -3
package/README.md
CHANGED
|
@@ -32,8 +32,8 @@ Transaction state is tracked seamlessly using [Async Context](https://github.com
|
|
|
32
32
|
|
|
33
33
|
Supported transaction modes include:
|
|
34
34
|
* `required` - Joins an active transaction if one exists, or starts a new top-level transaction.
|
|
35
|
-
* `isolated` - Begins a
|
|
36
|
-
* `force` - Always creates a separate
|
|
35
|
+
* `isolated` - Begins a SAVEPOINT / nested transaction isolated from the surrounding context.
|
|
36
|
+
* `force` - Always creates a separate SAVEPOINT for nested operations.
|
|
37
37
|
|
|
38
38
|
## Bulk Operations
|
|
39
39
|
Bulk operations (`processBulk`) batch insert, delete, and update statements for high performance. Bulk updates utilize standard ANSI SQL `CASE ... WHEN` constructs to update multiple records in a single database query across all SQL engines.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@travetto/model-sql",
|
|
3
|
-
"version": "8.0.0-alpha.
|
|
3
|
+
"version": "8.0.0-alpha.33",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "SQL backing for the travetto model module, with real-time modeling support for SQL schemas.",
|
|
6
6
|
"keywords": [
|
|
@@ -28,15 +28,15 @@
|
|
|
28
28
|
"directory": "module/model-sql"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@travetto/config": "^8.0.0-alpha.
|
|
32
|
-
"@travetto/context": "^8.0.0-alpha.
|
|
33
|
-
"@travetto/model": "^8.0.0-alpha.
|
|
34
|
-
"@travetto/model-indexed": "^8.0.0-alpha.
|
|
35
|
-
"@travetto/model-query": "^8.0.0-alpha.
|
|
31
|
+
"@travetto/config": "^8.0.0-alpha.26",
|
|
32
|
+
"@travetto/context": "^8.0.0-alpha.23",
|
|
33
|
+
"@travetto/model": "^8.0.0-alpha.27",
|
|
34
|
+
"@travetto/model-indexed": "^8.0.0-alpha.29",
|
|
35
|
+
"@travetto/model-query": "^8.0.0-alpha.30"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
|
-
"@travetto/cli": "^8.0.0-alpha.
|
|
39
|
-
"@travetto/test": "^8.0.0-alpha.
|
|
38
|
+
"@travetto/cli": "^8.0.0-alpha.32",
|
|
39
|
+
"@travetto/test": "^8.0.0-alpha.25"
|
|
40
40
|
},
|
|
41
41
|
"peerDependenciesMeta": {
|
|
42
42
|
"@travetto/cli": {
|
package/src/connection.ts
CHANGED
|
@@ -175,7 +175,7 @@ export abstract class SQLConnection<
|
|
|
175
175
|
}
|
|
176
176
|
|
|
177
177
|
/**
|
|
178
|
-
* Starts a transaction or
|
|
178
|
+
* Starts a transaction or SAVEPOINT
|
|
179
179
|
*/
|
|
180
180
|
async startTransaction(transactionId?: string): Promise<void> {
|
|
181
181
|
if (transactionId) {
|
|
@@ -191,7 +191,7 @@ export abstract class SQLConnection<
|
|
|
191
191
|
}
|
|
192
192
|
|
|
193
193
|
/**
|
|
194
|
-
* Commits the transaction or release
|
|
194
|
+
* Commits the transaction or release SAVEPOINT
|
|
195
195
|
*/
|
|
196
196
|
async commitTransaction(transactionId?: string): Promise<void> {
|
|
197
197
|
if (transactionId) {
|
|
@@ -204,7 +204,7 @@ export abstract class SQLConnection<
|
|
|
204
204
|
}
|
|
205
205
|
|
|
206
206
|
/**
|
|
207
|
-
* Rolls back the transaction or
|
|
207
|
+
* Rolls back the transaction or SAVEPOINT
|
|
208
208
|
*/
|
|
209
209
|
async rollbackTransaction(transactionId?: string): Promise<void> {
|
|
210
210
|
if (transactionId) {
|