mirror of
https://github.com/darksaid98/oxmysql.git
synced 2026-12-02 14:38:50 +00:00
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:
1 parent
553775c9a0
commit
4975a17a31
2 files changed
+8
-11
No files matched your search
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user