UNPKG

nestjs-reverse-engineering

Version:

A powerful TypeScript/NestJS library for database reverse engineering, entity generation, and CRUD operations

21 lines 913 B
import { DataSource } from 'typeorm'; import { DatabaseDialect, TableInfo, DatabaseSchema } from '../types/database.types'; export declare abstract class BaseSchemaIntrospector { protected readonly dataSource: DataSource; constructor(dataSource: DataSource); abstract getDialect(): DatabaseDialect; abstract getAllTables(): Promise<TableInfo[]>; abstract getTableInfo(tableName: string, schema?: string): Promise<TableInfo>; getDatabaseSchema(): Promise<DatabaseSchema>; } export declare class PostgresSchemaIntrospector extends BaseSchemaIntrospector { getDialect(): DatabaseDialect; getAllTables(): Promise<TableInfo[]>; getTableInfo(tableName: string, schema?: string): Promise<TableInfo>; private getColumns; private getEnumValues; private getPrimaryKeys; private getForeignKeys; private getIndexes; } //# sourceMappingURL=postgres-introspector.d.ts.map