fix(execute): Parse parameters as intended

This commit is contained in:
dunak-debug committed 2022-01-04 16:10:27 +01:00
1 parent 0e2d2b7551
commit 3a1462e0c0
5 files changed
+166 -131

No files matched your search

+4 -2
View File
@@ -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;