Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

adds clickhouse wrapper

Alaister Younga0b3541cb7a0
diff --git a/studio/components/interfaces/Database/Wrappers/Wrappers.constants.ts b/studio/components/interfaces/Database/Wrappers/Wrappers.constants.ts
index c02092927f6..3c26c901e9b 100644
--- a/studio/components/interfaces/Database/Wrappers/Wrappers.constants.ts
+++ b/studio/components/interfaces/Database/Wrappers/Wrappers.constants.ts
@@ -632,4 +632,40 @@ export const WRAPPERS: WrapperMeta[] = [
},
],
},
+ {
+ name: 'clickhouse_wrapper',
+ handlerName: 'click_house_fdw_handler',
+ validatorName: 'click_house_fdw_validator',
+ icon: '/img/icons/clickhouse-icon.svg',
+ extensionName: 'ClickHouseFdw',
+ label: 'ClickHouse',
+ docsUrl: 'https://supabase.github.io/wrappers/clickhouse/',
+ server: {
+ options: [
+ {
+ name: 'conn_string',
+ label: 'ClickHouse Connection String',
+ required: true,
+ encrypted: true,
+ hidden: false,
+ },
+ ],
+ },
+ tables: [
+ {
+ label: 'ClickHouse Table',
+ description: 'Map to a ClickHouse Table',
+ options: [
+ {
+ name: 'table',
+ label: 'ClickHouse Table Name',
+ editable: true,
+ required: true,
+ placeholder: 'my_clickhouse_table',
+ type: 'text',
+ },
+ ],
+ },
+ ],
+ },
]
diff --git a/studio/public/img/icons/clickhouse-icon.svg b/studio/public/img/icons/clickhouse-icon.svg
new file mode 100644
index 00000000000..5c61225e336
--- /dev/null
+++ b/studio/public/img/icons/clickhouse-icon.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" id="Layer_1" x="0" y="0" style="enable-background:new 0 0 96 96" version="1.1" viewBox="0 0 96 96"><style>.st0{fill:#ffb200}</style><path d="M2.6 0h5.5c1.4 0 2.6 1.2 2.6 2.6v90.8c0 1.4-1.2 2.6-2.6 2.6H2.6C1.2 96 0 94.8 0 93.4V2.6C0 1.2 1.2 0 2.6 0z" class="st0"/><path d="M0 85.3h10.7v8.1c0 1.4-1.2 2.6-2.6 2.6H2.6C1.2 96 0 94.8 0 93.4v-8.1z" style="fill:red"/><path d="M23.9 0h5.5C30.8 0 32 1.2 32 2.6v90.8c0 1.4-1.2 2.6-2.6 2.6h-5.5c-1.4 0-2.6-1.2-2.6-2.6V2.6c0-1.4 1.2-2.6 2.6-2.6zM45.3 0h5.5c1.4 0 2.6 1.2 2.6 2.6v90.8c0 1.4-1.2 2.6-2.6 2.6h-5.5c-1.4 0-2.6-1.2-2.6-2.6V2.6c0-1.4 1.1-2.6 2.6-2.6zM66.6 0h5.5c1.4 0 2.6 1.2 2.6 2.6v90.8c0 1.4-1.2 2.6-2.6 2.6h-5.5c-1.4 0-2.6-1.2-2.6-2.6V2.6C64 1.2 65.2 0 66.6 0zM87.9 37.3h5.5c1.4 0 2.6 1.2 2.6 2.6V56c0 1.4-1.2 2.6-2.6 2.6h-5.5c-1.4 0-2.6-1.2-2.6-2.6V39.9c0-1.4 1.2-2.6 2.6-2.6z" class="st0"/></svg>
\ No newline at end of file