This commit is contained in:
Jan Prochazka
2020-06-11 10:23:37 +02:00
parent dc7c44b797
commit a86f7e96ca
4 changed files with 6 additions and 5 deletions

View File

@@ -8,7 +8,7 @@ async function queryReader({ connection, sql }) {
const driver = engines(connection);
const pool = await driverConnect(driver, connection);
console.log(`Connected.`);
return await driver.readableStream(pool, sql);
return await driver.readQuery(pool, sql);
}
module.exports = queryReader;