UNPKG

635 BTypeScriptView Raw
1import { Pool } from 'pg';
2import { SchemaConstraint } from './Orm/PostgresqlDriver';
3export interface DBOptions {
4 config: {
5 user: string | undefined;
6 password: string | undefined;
7 database: string | undefined;
8 host?: string;
9 port?: number | string | number;
10 createIfNotExists?: boolean;
11 };
12 schema: string;
13 errorEntityNotFound: unknown;
14}
15export declare function dbInit<DBSchema extends SchemaConstraint>(projectDir: string, options: DBOptions): Promise<{
16 db: import("./Orm/PostgresqlDriver").BaseDB<DBSchema>;
17 pool: Pool;
18}>;
19//# sourceMappingURL=dbInit.d.ts.map
\No newline at end of file