The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
update fdw creation sql
Alaister Youngeef210f8d1e8
diff --git a/studio/components/interfaces/Database/Wrappers/Wrappers.constants.ts b/studio/components/interfaces/Database/Wrappers/Wrappers.constants.tsindex 7eeec9f9042..0abc0d3ac68 100644--- a/studio/components/interfaces/Database/Wrappers/Wrappers.constants.ts+++ b/studio/components/interfaces/Database/Wrappers/Wrappers.constants.ts@@ -3,6 +3,8 @@ import { Wrapper } from './Wrappers.types'export const wrappers: Wrapper[] = [{name: 'stripe_wrapper',+ handlerName: 'stripe_fdw_handler',+ validatorName: 'stripe_fdw_validator',icon: '/img/icons/stripe-icon.svg',extensionName: 'StripeFdw',label: 'Stripe',@@ -54,6 +56,8 @@ export const wrappers: Wrapper[] = [},{name: 'firebase_wrapper',+ handlerName: 'firebase_fdw_handler',+ validatorName: 'firebase_fdw_validator',icon: '/img/icons/firebase-icon.svg',extensionName: 'FirebaseFdw',label: 'Firebase',diff --git a/studio/components/interfaces/Database/Wrappers/Wrappers.types.ts b/studio/components/interfaces/Database/Wrappers/Wrappers.types.tsindex 18a1bdd9d71..f805f656937 100644--- a/studio/components/interfaces/Database/Wrappers/Wrappers.types.ts+++ b/studio/components/interfaces/Database/Wrappers/Wrappers.types.ts@@ -1,5 +1,7 @@export type Wrapper = {name: string+ handlerName: string+ validatorName: stringicon: stringextensionName: stringlabel: stringdiff --git a/studio/data/fdw/fdw-create-mutation.ts b/studio/data/fdw/fdw-create-mutation.tsindex e55553cf8c8..587d43f69db 100644--- a/studio/data/fdw/fdw-create-mutation.ts+++ b/studio/data/fdw/fdw-create-mutation.ts@@ -20,11 +20,8 @@ export function getFDWCreateSql({}: Pick<FDWCreateVariables, 'wrapper' | 'formState' | 'newTables'>) {const createWrapperSql = /* SQL */ `create foreign data wrapper ${wrapper.name}- handler wrappers_handler- validator wrappers_validator- options (- wrapper '${wrapper.extensionName}'- );+ handler ${wrapper.handlerName}+ validator ${wrapper.validatorName};`const encryptedOptions = wrapper.server.options.filter((option) => option.encrypted)