fix(mysql): optionally keep explicit transactions in autocommit tabs
This commit is contained in:
35 files changed
+1274
-47
No files matched your search
@@ -1382,6 +1382,10 @@ export async function executeMulti(
|
||||
useTransaction?: boolean;
|
||||
continueOnError?: boolean;
|
||||
executionMode?: "simple";
|
||||
/** MySQL auto-commit tabs: keep a transaction the user opened explicitly
|
||||
* (`BEGIN` / `START TRANSACTION`) open across executions until COMMIT /
|
||||
* ROLLBACK instead of rolling it back when the batch ends. */
|
||||
preserveExplicitTransaction?: boolean;
|
||||
},
|
||||
): Promise<QueryResult[]> {
|
||||
return postQueryWithDiagnostics(
|
||||
@@ -1430,6 +1434,7 @@ export async function executeMultiWithProgress(
|
||||
useTransaction?: boolean;
|
||||
continueOnError?: boolean;
|
||||
executionMode?: "simple";
|
||||
preserveExplicitTransaction?: boolean;
|
||||
executionId?: string;
|
||||
},
|
||||
): Promise<QueryResult[]> {
|
||||
|
||||
@@ -1618,6 +1618,10 @@ export async function executeMulti(
|
||||
useTransaction?: boolean;
|
||||
continueOnError?: boolean;
|
||||
executionMode?: "simple";
|
||||
/** MySQL auto-commit tabs: keep a transaction the user opened explicitly
|
||||
* (`BEGIN` / `START TRANSACTION`) open across executions until COMMIT /
|
||||
* ROLLBACK instead of rolling it back when the batch ends. */
|
||||
preserveExplicitTransaction?: boolean;
|
||||
},
|
||||
): Promise<QueryResult[]> {
|
||||
const diagnosticsEnabled = isDebugLoggingEnabled();
|
||||
@@ -1684,6 +1688,7 @@ export async function executeMultiWithProgress(
|
||||
useTransaction?: boolean;
|
||||
continueOnError?: boolean;
|
||||
executionMode?: "simple";
|
||||
preserveExplicitTransaction?: boolean;
|
||||
executionId?: string;
|
||||
},
|
||||
): Promise<QueryResult[]> {
|
||||
|
||||
Reference in new issue
Block a user