mirror of
https://github.com/darksaid98/oxmysql.git
synced 2026-12-02 14:38:50 +00:00
fix(execute): Parse parameters as intended
This commit is contained in:
1 parent
0e2d2b7551
commit
3a1462e0c0
5 files changed
+166
-131
No files matched your search
+4
-2
@@ -1,6 +1,8 @@
|
||||
import { RowDataPacket, ResultSetHeader, OkPacket } from 'mysql2';
|
||||
|
||||
export type QueryResponse = RowDataPacket[][] | RowDataPacket[] | OkPacket | OkPacket[] | ResultSetHeader;
|
||||
type SQLResponse = RowDataPacket[][] | RowDataPacket[] | OkPacket | OkPacket[] | ResultSetHeader;
|
||||
|
||||
export type QueryResponse = SQLResponse | SQLResponse[];
|
||||
|
||||
export type QueryType = 'insert' | 'update' | 'scalar' | 'single' | null;
|
||||
|
||||
@@ -12,4 +14,4 @@ export type TransactionQuery = {
|
||||
|
||||
export type CFXParameters = Record<string, unknown> | unknown[];
|
||||
|
||||
export type CFXCallback = (result: QueryResponse | RowDataPacket | number | null) => void;
|
||||
export type CFXCallback = (result: QueryResponse | number | null) => void;
|
||||
Reference in new issue
Block a user