clickhouse - view support, incremental structure update

This commit is contained in:
Jan Prochazka
2024-09-12 13:49:10 +02:00
parent d2e49967e4
commit e21c6d4872
5 changed files with 41 additions and 1 deletions

View File

@@ -0,0 +1,10 @@
module.exports = `
select
tables.name as "pureName",
tables.uuid as "objectId",
views.view_definition as "viewDefinition",
tables.metadata_modification_time as "contentHash"
from information_schema.views
inner join system.tables on views.table_name = tables.name and views.table_schema = tables.database
where views.table_schema='#DATABASE#' and tables.uuid =OBJECT_ID_CONDITION
`;