The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
import { z } from 'zod'
import { type SafeSqlFragment } from './pg-format'
import { VERSION_SQL } from './sql/version'
export const pgVersionZod = z.object({
version: z.string(),
version_number: z.number(),
active_connections: z.number(),
max_connections: z.number(),
})
function retrieve(): { sql: SafeSqlFragment; zod: typeof pgVersionZod } {
return {
sql: VERSION_SQL,
zod: pgVersionZod,
}
}
export default {
retrieve,
zod: pgVersionZod,
}