mong support WIP

This commit is contained in:
Jan Prochazka
2021-04-02 18:40:07 +02:00
parent d4bd6e03c9
commit 394c6028c9
19 changed files with 347 additions and 10 deletions

View File

@@ -74,6 +74,8 @@ export interface TableInfo extends DatabaseObjectInfo {
checks?: CheckInfo[];
}
export interface CollectionInfo extends DatabaseObjectInfo {}
export interface ViewInfo extends SqlObjectInfo {
columns: ColumnInfo[];
}
@@ -91,6 +93,7 @@ export interface SchemaInfo {
export interface DatabaseInfoObjects {
tables: TableInfo[];
collections: CollectionInfo[];
views: ViewInfo[];
procedures: ProcedureInfo[];
functions: FunctionInfo[];

View File

@@ -8,4 +8,5 @@ export interface SqlDialect {
explicitDropConstraint?: boolean;
anonymousPrimaryKey?: boolean;
enableConstraintsPerTable?: boolean;
nosql?: boolean; // mongo
}

View File

@@ -24,6 +24,14 @@ export interface EngineAuthType {
disabledFields: string[];
}
export interface ReadCollectionOptions {
pureName: string;
schemaName?: string;
countDocuments?: boolean;
skip?: number;
limit?: number;
}
export interface EngineDriver {
engine: string;
title: string;
@@ -52,6 +60,7 @@ export interface EngineDriver {
dialect: SqlDialect;
createDumper(): SqlDumper;
getAuthTypes(): EngineAuthType[];
readCollection(pool: any, options: ReadCollectionOptions): Promise<any>;
analyserClass?: any;
dumperClass?: any;