The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
feat: bigquery wrapper ui
Alaister Youngbc9c667eb192
diff --git a/studio/components/interfaces/Database/Wrappers/Wrappers.constants.ts b/studio/components/interfaces/Database/Wrappers/Wrappers.constants.tsindex feb16cbd553..610ceec29e1 100644--- a/studio/components/interfaces/Database/Wrappers/Wrappers.constants.ts+++ b/studio/components/interfaces/Database/Wrappers/Wrappers.constants.ts@@ -553,7 +553,7 @@ export const WRAPPERS: WrapperMeta[] = [name: 's3_wrapper',handlerName: 's3_fdw_handler',validatorName: 's3_fdw_validator',- icon: '/img/icons/s3-icon.svg',+ icon: `${BASE_PATH}/img/icons/s3-icon.svg`,extensionName: 'S3Fdw',label: 'S3',docsUrl: 'https://supabase.github.io/wrappers/s3/',@@ -636,7 +636,7 @@ export const WRAPPERS: WrapperMeta[] = [name: 'clickhouse_wrapper',handlerName: 'click_house_fdw_handler',validatorName: 'click_house_fdw_validator',- icon: '/img/icons/clickhouse-icon.svg',+ icon: `${BASE_PATH}/img/icons/clickhouse-icon.svg`,extensionName: 'ClickHouseFdw',label: 'ClickHouse',docsUrl: 'https://supabase.github.io/wrappers/clickhouse/',@@ -676,4 +676,78 @@ export const WRAPPERS: WrapperMeta[] = [},],},+ {+ name: 'bigquery_wrapper',+ handlerName: 'big_query_fdw_handler',+ validatorName: 'big_query_fdw_validator',+ icon: `${BASE_PATH}/img/icons/bigquery-icon.svg`,+ extensionName: 'BigQueryFdw',+ label: 'BigQuery',+ docsUrl: 'https://supabase.github.io/wrappers/bigquery/',+ server: {+ options: [+ {+ name: 'sa_key_id',+ label: 'Service Account Key',+ required: true,+ encrypted: true,+ hidden: true,+ },+ {+ name: 'project_id',+ label: 'Project ID',+ required: true,+ encrypted: false,+ hidden: false,+ },+ {+ name: 'dataset_id',+ label: 'Dataset ID',+ required: true,+ encrypted: false,+ hidden: false,+ },+ ],+ },+ tables: [+ {+ label: 'BigQuery Table',+ description: 'Map to a BigQuery Table',+ options: [+ {+ name: 'table',+ label: 'BigQuery Table Name',+ editable: true,+ required: true,+ placeholder: 'my_bigquery_table',+ type: 'text',+ },+ {+ name: 'location',+ label: 'Location',+ defaultValue: 'US',+ editable: true,+ required: false,+ type: 'text',+ },+ {+ name: 'timeout',+ label: 'Timeout (ms)',+ defaultValue: '30000',+ editable: true,+ required: false,+ type: 'text',+ },+ {+ name: 'rowid_column',+ label: 'Row ID Column',+ defaultValue: 'id',+ editable: true,+ required: false,+ type: 'text',+ },+ ],+ },+ ],+ },]diff --git a/studio/public/img/icons/bigquery-icon.svg b/studio/public/img/icons/bigquery-icon.svgnew file mode 100644index 00000000000..6aee1b1f440--- /dev/null+++ b/studio/public/img/icons/bigquery-icon.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" width="64" height="64"><path fill="#4386fa" d="M14.48 58.196.558 34.082a4.163 4.163 0 0 1 0-4.164L14.48 5.805a4.163 4.163 0 0 1 3.6-2.082h27.857c1.48.007 2.845.8 3.585 2.082l13.92 24.113a4.163 4.163 0 0 1 0 4.164L49.52 58.196a4.163 4.163 0 0 1-3.6 2.082H18.07a4.167 4.167 0 0 1-3.593-2.082z"/><path d="M40.697 24.235s3.87 9.283-1.406 14.545-14.883 1.894-14.883 1.894L43.95 60.27h1.984a4.163 4.163 0 0 0 3.6-2.082L58.75 42.23z" opacity=".1"/><path fill="#fff" d="M45.267 43.23 41 38.953a.67.67 0 0 0-.158-.12 11.63 11.63 0 1 0-2.032 2.037.67.67 0 0 0 .113.15l4.277 4.277a.67.67 0 0 0 .947 0l1.12-1.12a.67.67 0 0 0 0-.947zM31.64 40.464a8.75 8.75 0 1 1 8.749-8.749 8.75 8.75 0 0 1-8.749 8.749zm-5.593-9.216v3.616a6.426 6.426 0 0 0 2.338 2.375v-6.013zm4.375-2.998v9.772a6.45 6.45 0 0 0 2.338 0V28.25zm6.764 6.606v-2.142H34.85v4.5a6.43 6.43 0 0 0 2.338-2.368z"/></svg>\ No newline at end of file