1 | import { Pool } from 'pg';
|
2 | import { SchemaConstraint } from './Orm/PostgresqlDriver';
|
3 | export 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 | }
|
15 | export declare function dbInit<DBSchema extends SchemaConstraint>(projectDir: string, options: DBOptions): Promise<{
|
16 | db: import("./Orm/PostgresqlDriver").BaseDB<DBSchema>;
|
17 | pool: Pool;
|
18 | }>;
|
19 |
|
\ | No newline at end of file |