The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
import { snakeCase } from 'lodash'
import { ReplicationPublicationData } from '@/data/replication/publication-query'
export const inferPostgresTableFromNamespaceTable = ({
publication,
tableName,
}: {
publication?: ReplicationPublicationData
tableName: string
}) => {
return publication?.tables.find((x) => tableName === snakeCase(`${x.schema}.${x.name}_changelog`))
}