clickhouse import

This commit is contained in:
Jan Prochazka
2024-09-12 15:39:48 +02:00
parent 086bc0d9f3
commit b232263708
5 changed files with 42 additions and 3 deletions

View File

@@ -78,6 +78,15 @@ class Analyser extends DatabaseAnalyser {
views: tableModificationsQueryData.rows.filter((x) => x.tableEngine == 'View'),
};
}
async _computeSingleObjectId() {
const { pureName } = this.singleObjectFilter;
const resId = await this.driver.query(
this.pool,
`SELECT uuid as id FROM system.tables WHERE database = '${this.pool._database_name}' AND name='${pureName}'`
);
this.singleObjectId = resId.rows[0].id;
}
}
module.exports = Analyser;