custom DB URI support (used by Mongo)

This commit is contained in:
Jan Prochazka
2021-04-10 10:47:36 +02:00
parent e8b43820b9
commit 88b4c9daff
6 changed files with 124 additions and 57 deletions

View File

@@ -37,6 +37,8 @@ export interface EngineDriver {
engine: string;
title: string;
defaultPort?: number;
supportsDatabaseUrl?: boolean;
databaseUrlPlaceholder?: string;
connect({ server, port, user, password, database }): any;
query(pool: any, sql: string): Promise<QueryResult>;
stream(pool: any, sql: string, options: StreamOptions);