This commit is contained in:
Jan Prochazka
2020-09-27 09:05:00 +02:00
parent 154a4fc7d9
commit fbd963bfb1
3 changed files with 15 additions and 1 deletions

View File

@@ -27,6 +27,12 @@ const driver = {
return client;
},
async query(client, sql) {
if (sql == null) {
return {
rows: [],
columns: [],
};
}
const res = await client.query(sql);
return { rows: res.rows, columns: res.fields };
},