@eggjs/dal-runtime
Version:
tegg dal decorator
13 lines (12 loc) • 399 B
TypeScript
import { DataSourceOptions } from './MySqlDataSource';
export declare class DatabaseForker {
private readonly env;
private readonly options;
constructor(env: string, options: DataSourceOptions);
shouldFork(): boolean | undefined;
forkDb(moduleDir: string): Promise<void>;
private forkTables;
private doForkTable;
private doCreateUtDb;
destroy(): Promise<void>;
}