Adding mysql support.
This commit is contained in:
parent
0cf08df80f
commit
5d0ce3bf89
|
@ -262,6 +262,13 @@ module MySQLModule {
|
||||||
const operation = this._operation(json)
|
const operation = this._operation(json)
|
||||||
this.client.connect()
|
this.client.connect()
|
||||||
const input = this._query(json, { disableReturning: true })
|
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
|
let row
|
||||||
// need to manage returning, a feature mySQL can't do
|
// need to manage returning, a feature mySQL can't do
|
||||||
if (operation === operation.DELETE) {
|
if (operation === operation.DELETE) {
|
||||||
|
|
Loading…
Reference in New Issue