postgres-types.ts 453 B

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