import type { DbAdapter } from "../adapter.ts"; import type { PgType } from "../pgtype.ts"; import type { Canonical } from "../canonicalise/index.ts"; export interface ViewColumn { name: string; type: Canonical; isNullable: boolean; isUpdatable: boolean; ordinalPosition: number; } export interface ViewDetails extends PgType<"view"> { columns: ViewColumn[]; isUpdatable: boolean; checkOption: "NONE" | "LOCAL" | "CASCADED"; } declare const extractView: (db: DbAdapter, view: PgType<"view">) => Promise; export default extractView;