Home > extract-pg-schema > Schema
Schema type
extractSchemas generates a record of all the schemas extracted, indexed by schema name. The schemas are instances of this type.
Signature:
typescript
export type Schema = {
name: string;
domains: DomainDetails[];
enums: EnumDetails[];
ranges: RangeDetails[];
tables: TableDetails[];
foreignTables: ForeignTableDetails[];
views: ViewDetails[];
materializedViews: MaterializedViewDetails[];
compositeTypes: CompositeTypeDetails[];
functions: FunctionDetails[];
procedures: ProcedureDetails[];
};
References: DomainDetails, EnumDetails, RangeDetails, TableDetails, ForeignTableDetails, ViewDetails, MaterializedViewDetails, CompositeTypeDetails, FunctionDetails, ProcedureDetails