export CSV from mysql test

This commit is contained in:
Jan Prochazka
2020-06-04 11:18:46 +02:00
parent d05b319030
commit afbec02f3a
13 changed files with 185 additions and 2 deletions

View File

@@ -84,6 +84,10 @@ const driver = {
return query;
},
readableStream(connection, sql) {
const query = connection.query(sql);
return query.stream({ highWaterMark: 100 });
},
async getVersion(connection) {
const { rows } = await this.query(connection, "show variables like 'version'");
const version = rows[0].Value;