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

@@ -116,9 +116,10 @@ export class DatabaseInfoAlterProcessor {
throw new Error('recreateTable not implemented for DatabaseInfoAlterProcessor');
}
fillPreloadedRows(table: NamedObjectInfo, oldRows: any[], newRows: any[], key: string[]) {
fillPreloadedRows(table: NamedObjectInfo, oldRows: any[], newRows: any[], key: string[], insertOnly: string[]) {
const tableInfo = this.db.tables.find(x => x.pureName == table.pureName && x.schemaName == table.schemaName);
tableInfo.preloadedRows = newRows;
tableInfo.preloadedRowsKey = key;
tableInfo.preloadedRowsInsertOnly = insertOnly;
}
}