mongo update script preview

This commit is contained in:
Jan Prochazka
2021-04-08 10:02:04 +02:00
parent 1bf9110f4b
commit c7e1e294ef
3 changed files with 17 additions and 9 deletions

View File

@@ -27,11 +27,12 @@ export interface EngineAuthType {
export interface ReadCollectionOptions {
pureName: string;
schemaName?: string;
countDocuments?: boolean;
skip?: number;
limit?: number;
}
export interface EngineDriver {
engine: string;
title: string;
@@ -62,6 +63,7 @@ export interface EngineDriver {
getAuthTypes(): EngineAuthType[];
readCollection(pool: any, options: ReadCollectionOptions): Promise<any>;
updateCollection(pool: any, changeSet: any): Promise<any>;
getCollectionUpdateScript(changeSet: any): string;
analyserClass?: any;
dumperClass?: any;