refactor(transaction): support new transaction syntax

Adds a third accepted syntax for transactions, distinct from the mysql-async
compatible implementations.
This commit is contained in:
Linden committed 2022-04-21 13:25:40 +10:00
1 parent da83eff989
commit c07fa4a451
4 files changed
+20 -6

No files matched your search

+1 -1
View File
@@ -7,7 +7,7 @@ export type QueryResponse = SQLResponse | SQLResponse[] | RowDataPacket;
export type QueryType = 'execute' | 'insert' | 'update' | 'scalar' | 'single' | null;
export type TransactionQuery = {
query: string;
query: string | string[];
parameters?: CFXParameters;
values?: CFXParameters;
};