mirror of
https://github.com/darksaid98/oxmysql.git
synced 2026-12-01 22:21:51 +00:00
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:
1 parent
da83eff989
commit
c07fa4a451
4 files changed
+20
-6
No files matched your search
+1
-1
@@ -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;
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user