1
0
Fork 0
mirror of synced 2024-10-01 01:28:51 +13:00

Adding mysql support.

This commit is contained in:
mike12345567 2021-10-29 18:43:50 +01:00
parent f071cc5219
commit 835b0efe74

View file

@ -262,6 +262,13 @@ module MySQLModule {
const operation = this._operation(json)
this.client.connect()
const input = this._query(json, { disableReturning: true })
if (Array.isArray(input)) {
const responses = []
for (let query of input) {
responses.push(await internalQuery(this.client, query))
}
return responses
}
let row
// need to manage returning, a feature mySQL can't do
if (operation === operation.DELETE) {