alter processor - works add column tests

This commit is contained in:
Jan Prochazka
2021-07-01 09:12:15 +02:00
parent 4a3ef70979
commit 3791fd568c
4 changed files with 14 additions and 4 deletions

View File

@@ -43,6 +43,14 @@ export function generateTablePairingId(table: TableInfo): TableInfo {
return table;
}
export function generateDbPairingId(db: DatabaseInfo): DatabaseInfo {
if (!db) return db;
return {
...db,
tables: (db.tables || []).map(generateTablePairingId),
};
}
function testEqualNames(a: string, b: string, opts: DbDiffOptions) {
if (opts.ignoreCase) return a.toLowerCase() == b.toLowerCase();
return a == b;