sqlite sync query

This commit is contained in:
Jan Prochazka
2021-05-06 13:32:37 +02:00
parent a9c8cee08a
commit e251459512
3 changed files with 48 additions and 38 deletions

View File

@@ -121,7 +121,7 @@ const driver = {
return { rows: res.rows.map(row => zipDataRow(row, columns)), columns };
},
async stream(client, sql, options) {
const sqlSplitted = identify(sql, { dialect: 'psql' });
const sqlSplitted = identify(sql, { dialect: 'psql', strict: false });
for (const sqlItem of sqlSplitted) {
await runStreamItem(client, sqlItem.text, options);