new object templates (generic+mssql)

This commit is contained in:
Jan Prochazka
2021-12-09 11:16:59 +01:00
parent 83544170f3
commit ad2c293f6f
4 changed files with 37 additions and 2 deletions

View File

@@ -37,6 +37,11 @@ export interface ReadCollectionOptions {
limit?: number;
}
export interface NewObjectTemplate {
label: string;
sql: string;
}
export interface EngineDriver {
engine: string;
title: string;
@@ -81,6 +86,7 @@ export interface EngineDriver {
createDatabase(pool: any, name: string): Promise;
getQuerySplitterOptions(usage: 'stream' | 'script'): any;
script(pool: any, sql: string): Promise;
getNewObjectTemplates(): NewObjectTemplate[];
analyserClass?: any;
dumperClass?: any;