fix(db/execute): Parse responses during prepare

Prepare should return the most appropriate result type (scalar, single, query, update, etc.)
This commit is contained in:
Linden committed 2022-02-10 16:57:28 +11:00
1 parent 553775c9a0
commit 4975a17a31
2 files changed
+8 -11

No files matched your search

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