mirror of
https://github.com/darksaid98/oxmysql.git
synced 2026-12-01 22:21:51 +00:00
WIP: Rewrite to TS & Cleanup
This commit is contained in:
27 files changed
+508
-504
No files matched your search
@@ -0,0 +1,15 @@
|
||||
import { RowDataPacket, ResultSetHeader, OkPacket } from 'mysql2';
|
||||
|
||||
export type QueryResponse = RowDataPacket[][] | RowDataPacket[] | OkPacket | OkPacket[] | ResultSetHeader;
|
||||
|
||||
export type QueryType = 'insert' | 'update' | 'scalar' | 'single' | null;
|
||||
|
||||
export type TransactionQuery = {
|
||||
query: string;
|
||||
parameters?: CFXParameters;
|
||||
values?: CFXParameters;
|
||||
};
|
||||
|
||||
export type CFXParameters = Record<string, unknown> | unknown[];
|
||||
|
||||
export type CFXCallback = (result: QueryResponse | RowDataPacket | number | null) => void;
|
||||
Reference in new issue
Block a user