mirror of
https://github.com/darksaid98/oxmysql.git
synced 2026-12-02 22:22:50 +00:00
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:
1 parent
fe9c684bf0
commit
e8f1abcab7
4 files changed
+43
-13
No files matched your search
@@ -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);
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user