preloadedRows insert only implementation

This commit is contained in:
Jan Prochazka
2021-12-09 18:26:10 +01:00
parent 7ad845d5c6
commit 1a0d5457ce
7 changed files with 13 additions and 7 deletions

View File

@@ -15,5 +15,5 @@ export interface AlterProcessor {
recreateTable(oldTable: TableInfo, newTable: TableInfo);
createSqlObject(obj: SqlObjectInfo);
dropSqlObject(obj: SqlObjectInfo);
fillPreloadedRows(table: NamedObjectInfo, oldRows: any[], newRows: any[], key: string[]);
fillPreloadedRows(table: NamedObjectInfo, oldRows: any[], newRows: any[], key: string[], insertOnly: string[]);
}

View File

@@ -80,6 +80,7 @@ export interface TableInfo extends DatabaseObjectInfo {
checks?: CheckInfo[];
preloadedRows?: any[];
preloadedRowsKey?: string[];
preloadedRowsInsertOnly?: string[];
__isDynamicStructure?: boolean;
}