mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 00:56:02 +00:00
clickhouse tests WIP
This commit is contained in:
@@ -38,6 +38,12 @@ const driver = {
|
||||
});
|
||||
|
||||
const dataSet = await resultSet.json();
|
||||
if (!dataSet?.[0]) {
|
||||
return {
|
||||
rows: [],
|
||||
columns: [],
|
||||
};
|
||||
}
|
||||
|
||||
const columns = dataSet[0].map((columnName, i) => ({
|
||||
columnName,
|
||||
@@ -207,6 +213,10 @@ const driver = {
|
||||
const dataset = await resultSet.json();
|
||||
return dataset;
|
||||
},
|
||||
|
||||
async close(client) {
|
||||
return client.close();
|
||||
},
|
||||
};
|
||||
|
||||
module.exports = driver;
|
||||
|
||||
Reference in New Issue
Block a user