mirror of
https://github.com/darksaid98/oxmysql.git
synced 2026-12-01 22:21:51 +00:00
refactor(utils): setCallback
This commit is contained in:
1 parent
68f0dc526a
commit
bcb703a11f
4 files changed
+21
-26
No files matched your search
@@ -14,6 +14,10 @@ export const executeType = (query: string) => {
|
||||
};
|
||||
|
||||
export const parseExecute = (placeholders: number, parameters: CFXParameters) => {
|
||||
const parametersType = typeof parameters;
|
||||
|
||||
if (!parameters || parametersType !== 'object') return [];
|
||||
|
||||
if (!Array.isArray(parameters)) {
|
||||
if (typeof parameters === 'object') {
|
||||
const arr: unknown[] = [];
|
||||
|
||||
Reference in new issue
Block a user