feat: cli/seed db

This commit is contained in:
MontaGhanmy
2024-10-23 14:17:14 +01:00
parent 094d68ac17
commit d3820e4af0
3 changed files with 187 additions and 0 deletions
@@ -47,4 +47,7 @@ export abstract class AbstractConnector<T extends ConnectionOptions> implements
getType(): DatabaseType {
return this.type;
}
getClient() {
return this.getClient();
}
}
@@ -99,6 +99,11 @@ export interface Connector extends Initializable {
* @returns Pagination
*/
getOffsetPagination(options: Paginable): Pagination;
/**
* Get the db client
*/
getClient(): any;
}
export declare type ConnectionOptions = MongoConnectionOptions | PostgresConnectionOptions;