postgres-types.ts12 lines · main
| 1 | import type { PGColumn, PGTable, SafeSqlFragment } from '@supabase/pg-meta' |
| 2 | |
| 3 | export type SafePostgresColumn = PGColumn & { |
| 4 | check: SafeSqlFragment | null |
| 5 | // Present when sourced from pg-meta's SQL queries (e.g. `pgMeta.tables.retrieve`), absent |
| 6 | // from the legacy `/platform/pg-meta/{ref}/tables` REST endpoint. |
| 7 | format_schema?: string |
| 8 | } |
| 9 | |
| 10 | export type SafePostgresTable = Omit<PGTable, 'columns'> & { |
| 11 | columns?: SafePostgresColumn[] | undefined |
| 12 | } |