feat(rawExecute): "prepare" alternative without unpacking

See #179. Always return an array of row results (or null).
Parameters are now optional (though preferred).
This commit is contained in:
Linden committed 2023-06-06 14:37:05 +10:00
1 parent fe9c684bf0
commit e8f1abcab7
4 files changed
+43 -13

No files matched your search

+10
View File
@@ -71,6 +71,16 @@ MySQL.prepare = (
cb: CFXCallback,
invokingResource = GetInvokingResource(),
throwError?: boolean
) => {
rawExecute(invokingResource, query, parameters, cb, throwError, true);
};
MySQL.rawExecute = (
query: string,
parameters: CFXParameters,
cb: CFXCallback,
invokingResource = GetInvokingResource(),
throwError?: boolean
) => {
rawExecute(invokingResource, query, parameters, cb, throwError);
};