The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
export const tableKeys = {
names: (projectRef: string | undefined) => ['projects', projectRef, 'table-names'] as const,
list: (
projectRef: string | undefined,
schema: string | undefined,
options?: { includeColumns?: boolean }
) => ['projects', projectRef, 'tables', schema, options].filter(Boolean),
infiniteListPrefix: (projectRef: string | undefined, schema?: string) =>
['projects', projectRef, 'tables', 'infinite', schema].filter(
(part) => part !== undefined && part !== null && part !== ''
),
infiniteList: (
projectRef: string | undefined,
schema: string | undefined,
options: { includeColumns?: boolean; pageSize?: number; nameFilter?: string }
) => [...tableKeys.infiniteListPrefix(projectRef, schema), options],
retrieve: (projectRef: string | undefined, name: string, schema: string) =>
['projects', projectRef, 'table', schema, name].filter(Boolean),
}