'use client'; import { PgIdentifier } from "./sql/pg-identifier.cjs"; import { Postgres } from "./sql/database.cjs"; import { z } from "zod"; //#region src/schema.d.ts declare const FullSchemaKeyColumn: z.ZodObject<{ type: z.ZodLiteral<"indexColumn">; name: z.ZodCodec>; order: z.ZodOptional>; nulls: z.ZodOptional>; opclass: z.ZodOptional; collation: z.ZodOptional; }, z.core.$strip>; type FullSchemaKeyColumn = z.infer; declare const FullSchemaIncludedColumn: z.ZodObject<{ name: z.ZodCodec>; }, z.core.$strip>; type FullSchemaIncludedColumn = z.infer; declare const FullSchemaIndex: z.ZodObject<{ type: z.ZodLiteral<"index">; oid: z.ZodNumber; schemaName: z.ZodCodec>; tableName: z.ZodCodec>; indexName: z.ZodCodec>; indexType: z.ZodString; isUnique: z.ZodBoolean; isPrimary: z.ZodBoolean; isClustered: z.ZodBoolean; wherePredicate: z.ZodOptional; tablespace: z.ZodOptional; keyColumns: z.ZodArray; name: z.ZodCodec>; order: z.ZodOptional>; nulls: z.ZodOptional>; opclass: z.ZodOptional; collation: z.ZodOptional; }, z.core.$strip>>; includedColumns: z.ZodOptional>; }, z.core.$strip>>>; }, z.core.$strip>; type FullSchemaIndex = z.infer; declare const FullSchemaColumn: z.ZodObject<{ type: z.ZodLiteral<"column">; name: z.ZodCodec>; order: z.ZodNumber; columnType: z.ZodString; isNullable: z.ZodBoolean; defaultValue: z.ZodOptional; dropped: z.ZodBoolean; collation: z.ZodOptional; storage: z.ZodOptional>; isIdentity: z.ZodOptional>; }, z.core.$strip>; type FullSchemaColumn = z.infer; declare const FullSchemaTable: z.ZodObject<{ type: z.ZodLiteral<"table">; oid: z.ZodNumber; schemaName: z.ZodCodec>; tableName: z.ZodCodec>; tablespace: z.ZodOptional; partitionKeyDef: z.ZodOptional; columns: z.ZodDefault; name: z.ZodCodec>; order: z.ZodNumber; columnType: z.ZodString; isNullable: z.ZodBoolean; defaultValue: z.ZodOptional; dropped: z.ZodBoolean; collation: z.ZodOptional; storage: z.ZodOptional>; isIdentity: z.ZodOptional>; }, z.core.$strip>>>; }, z.core.$strip>; type FullSchemaTable = z.infer; declare const FullSchemaConstraint: z.ZodObject<{ type: z.ZodLiteral<"constraint">; oid: z.ZodNumber; schemaName: z.ZodCodec>; tableName: z.ZodCodec>; constraintName: z.ZodCodec>; constraintType: z.ZodUnion<[z.ZodEnum<{ check: "check"; foreign_key: "foreign_key"; not_null: "not_null"; primary_key: "primary_key"; unique: "unique"; trigger: "trigger"; exclusion: "exclusion"; }>, z.ZodString]>; definition: z.ZodString; isDeferrable: z.ZodOptional; isInitiallyDeferred: z.ZodOptional; isValidated: z.ZodOptional; backingIndexOid: z.ZodOptional; }, z.core.$strip>; type FullSchemaConstraint = z.infer; declare const FullSchemaFunction: z.ZodObject<{ type: z.ZodLiteral<"function">; schemaName: z.ZodCodec>; objectName: z.ZodCodec>; objectType: z.ZodEnum<{ function: "function"; procedure: "procedure"; aggregate: "aggregate"; "window function": "window function"; }>; identityArguments: z.ZodOptional; definition: z.ZodString; }, z.core.$strip>; type FullSchemaFunction = z.infer; declare const FullSchemaExtension: z.ZodObject<{ type: z.ZodLiteral<"extension">; extensionName: z.ZodString; version: z.ZodString; schemaName: z.ZodCodec>; }, z.core.$strip>; type FullSchemaExtension = z.infer; declare const FullSchemaView: z.ZodObject<{ type: z.ZodLiteral<"view">; schemaName: z.ZodCodec>; viewName: z.ZodCodec>; objectType: z.ZodEnum<{ view: "view"; materialized_view: "materialized_view"; }>; definition: z.ZodString; tablespace: z.ZodOptional; }, z.core.$strip>; type FullSchemaView = z.infer; declare const FullSchemaTypeConstraint: z.ZodObject<{ name: z.ZodCodec>; definition: z.ZodString; }, z.core.$strip>; type FullSchemaTypeConstraint = z.infer; declare const FullSchemaCompositeAttribute: z.ZodObject<{ type: z.ZodLiteral<"compositeAttribute">; name: z.ZodCodec>; attributeType: z.ZodString; collation: z.ZodOptional>>; }, z.core.$strip>; type FullSchemaCompositeAttribute = z.infer; declare const FullSchemaType: z.ZodObject<{ type: z.ZodLiteral<"type">; schemaName: z.ZodCodec>; typeName: z.ZodCodec>; typeCategory: z.ZodEnum<{ enum: "enum"; domain: "domain"; composite: "composite"; }>; enumLabels: z.ZodOptional>; domainBaseType: z.ZodOptional; domainIsNotNull: z.ZodOptional; domainDefault: z.ZodOptional; domainConstraints: z.ZodOptional>; definition: z.ZodString; }, z.core.$strip>>>; compositeAttributes: z.ZodOptional; name: z.ZodCodec>; attributeType: z.ZodString; collation: z.ZodOptional>>; }, z.core.$strip>>>; }, z.core.$strip>; type FullSchemaType = z.infer; declare const FullSchemaTrigger: z.ZodObject<{ type: z.ZodLiteral<"trigger">; schemaName: z.ZodCodec>; tableName: z.ZodCodec>; triggerName: z.ZodCodec>; definition: z.ZodString; enabledMode: z.ZodString; }, z.core.$strip>; type FullSchemaTrigger = z.infer; declare const FullSchema: z.ZodObject<{ indexes: z.ZodDefault; oid: z.ZodNumber; schemaName: z.ZodCodec>; tableName: z.ZodCodec>; indexName: z.ZodCodec>; indexType: z.ZodString; isUnique: z.ZodBoolean; isPrimary: z.ZodBoolean; isClustered: z.ZodBoolean; wherePredicate: z.ZodOptional; tablespace: z.ZodOptional; keyColumns: z.ZodArray; name: z.ZodCodec>; order: z.ZodOptional>; nulls: z.ZodOptional>; opclass: z.ZodOptional; collation: z.ZodOptional; }, z.core.$strip>>; includedColumns: z.ZodOptional>; }, z.core.$strip>>>; }, z.core.$strip>>>; tables: z.ZodDefault; oid: z.ZodNumber; schemaName: z.ZodCodec>; tableName: z.ZodCodec>; tablespace: z.ZodOptional; partitionKeyDef: z.ZodOptional; columns: z.ZodDefault; name: z.ZodCodec>; order: z.ZodNumber; columnType: z.ZodString; isNullable: z.ZodBoolean; defaultValue: z.ZodOptional; dropped: z.ZodBoolean; collation: z.ZodOptional; storage: z.ZodOptional>; isIdentity: z.ZodOptional>; }, z.core.$strip>>>; }, z.core.$strip>>>; constraints: z.ZodDefault; oid: z.ZodNumber; schemaName: z.ZodCodec>; tableName: z.ZodCodec>; constraintName: z.ZodCodec>; constraintType: z.ZodUnion<[z.ZodEnum<{ check: "check"; foreign_key: "foreign_key"; not_null: "not_null"; primary_key: "primary_key"; unique: "unique"; trigger: "trigger"; exclusion: "exclusion"; }>, z.ZodString]>; definition: z.ZodString; isDeferrable: z.ZodOptional; isInitiallyDeferred: z.ZodOptional; isValidated: z.ZodOptional; backingIndexOid: z.ZodOptional; }, z.core.$strip>>>; functions: z.ZodDefault; schemaName: z.ZodCodec>; objectName: z.ZodCodec>; objectType: z.ZodEnum<{ function: "function"; procedure: "procedure"; aggregate: "aggregate"; "window function": "window function"; }>; identityArguments: z.ZodOptional; definition: z.ZodString; }, z.core.$strip>>>; extensions: z.ZodDefault; extensionName: z.ZodString; version: z.ZodString; schemaName: z.ZodCodec>; }, z.core.$strip>>>; views: z.ZodDefault; schemaName: z.ZodCodec>; viewName: z.ZodCodec>; objectType: z.ZodEnum<{ view: "view"; materialized_view: "materialized_view"; }>; definition: z.ZodString; tablespace: z.ZodOptional; }, z.core.$strip>>>; types: z.ZodDefault; schemaName: z.ZodCodec>; typeName: z.ZodCodec>; typeCategory: z.ZodEnum<{ enum: "enum"; domain: "domain"; composite: "composite"; }>; enumLabels: z.ZodOptional>; domainBaseType: z.ZodOptional; domainIsNotNull: z.ZodOptional; domainDefault: z.ZodOptional; domainConstraints: z.ZodOptional>; definition: z.ZodString; }, z.core.$strip>>>; compositeAttributes: z.ZodOptional; name: z.ZodCodec>; attributeType: z.ZodString; collation: z.ZodOptional>>; }, z.core.$strip>>>; }, z.core.$strip>>>; triggers: z.ZodDefault; schemaName: z.ZodCodec>; tableName: z.ZodCodec>; triggerName: z.ZodCodec>; definition: z.ZodString; enabledMode: z.ZodString; }, z.core.$strip>>>; }, z.core.$strip>; type FullSchema = z.infer; declare function dumpSchema(db: Postgres): Promise; //#endregion export { FullSchema, FullSchemaColumn, FullSchemaCompositeAttribute, FullSchemaConstraint, FullSchemaExtension, FullSchemaFunction, FullSchemaIncludedColumn, FullSchemaIndex, FullSchemaKeyColumn, FullSchemaTable, FullSchemaTrigger, FullSchemaType, FullSchemaTypeConstraint, FullSchemaView, dumpSchema }; //# sourceMappingURL=schema.d.cts.map