@prisma/query-plan-executor 7.10.0 → 7.11.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/dist/index.d.ts +20 -1
- package/dist/index.js +89017 -94091
- package/package.json +8 -9
package/dist/index.d.ts
CHANGED
|
@@ -2425,6 +2425,12 @@ declare type PureQueryPlanNode<Rest = never> = {
|
|
|
2425
2425
|
* query plan purification. Never produced by the query compiler.
|
|
2426
2426
|
*/
|
|
2427
2427
|
lastInsertId?: string;
|
|
2428
|
+
/**
|
|
2429
|
+
* Present when this node holds an already-evaluated runtime result (e.g. from
|
|
2430
|
+
* an evaluated impure query plan node) and does not need to be traversed and copied
|
|
2431
|
+
* by evaluateArg.
|
|
2432
|
+
*/
|
|
2433
|
+
isEvaluated?: boolean;
|
|
2428
2434
|
} | {
|
|
2429
2435
|
type: 'seq';
|
|
2430
2436
|
args: (PureQueryPlanNode<Rest> | Rest)[];
|
|
@@ -3275,6 +3281,12 @@ declare interface TracingHelper {
|
|
|
3275
3281
|
runInChildSpan<R>(nameOrOptions: string | ExtendedSpanOptions, callback: SpanCallback<R>): R;
|
|
3276
3282
|
}
|
|
3277
3283
|
|
|
3284
|
+
/**
|
|
3285
|
+
* A transaction on one connection. The caller calls either `commit()` or `rollback()`, once,
|
|
3286
|
+
* and sends nothing on the transaction afterwards. `commit()` is called only when no statement is
|
|
3287
|
+
* running. `rollback()`, `rollbackToSavepoint()`, `releaseSavepoint()` and a `ROLLBACK` sent through
|
|
3288
|
+
* `executeRaw` may be called while one is.
|
|
3289
|
+
*/
|
|
3278
3290
|
declare interface Transaction extends AdapterInfo, SqlQueryable {
|
|
3279
3291
|
/**
|
|
3280
3292
|
* Transaction options.
|
|
@@ -3329,7 +3341,14 @@ export declare class TransactionManager {
|
|
|
3329
3341
|
startTransaction(options?: TransactionOptions_2): Promise<TransactionInfo>;
|
|
3330
3342
|
commitTransaction(transactionId: string): Promise<void>;
|
|
3331
3343
|
rollbackTransaction(transactionId: string): Promise<void>;
|
|
3332
|
-
|
|
3344
|
+
/**
|
|
3345
|
+
* Returns a handle for running statements in the transaction. The handle rejects every
|
|
3346
|
+
* statement issued after the transaction has started to close, or after the nested transaction
|
|
3347
|
+
* that is innermost now has started to roll back. A commit of that nested transaction never
|
|
3348
|
+
* closes the handle: it runs its statements in the enclosing transaction from then on,
|
|
3349
|
+
* including one issued while the commit waits to release the savepoint.
|
|
3350
|
+
*/
|
|
3351
|
+
getTransaction(txInfo: TransactionInfo, operation: string): Promise<SqlQueryable>;
|
|
3333
3352
|
cancelAllTransactions(): Promise<void>;
|
|
3334
3353
|
}
|
|
3335
3354
|
|