optimalization

This commit is contained in:
Jan Prochazka 2021-09-16 09:46:08 +02:00
parent cb2a0b2492
commit ca1c7cc556

View File

@ -69,12 +69,12 @@ export function generateDbPairingId(db: DatabaseInfo): DatabaseInfo {
return {
...db,
// ..._.mapValues(db, v => (_.isArray(v) ? v.map(generateObjectPairingId) : v)),
tables: (db.tables || []).map(generateTablePairingId),
views: (db.views || []).map(generateObjectPairingId),
procedures: (db.procedures || []).map(generateObjectPairingId),
functions: (db.functions || []).map(generateObjectPairingId),
triggers: (db.triggers || []).map(generateObjectPairingId),
matviews: (db.matviews || []).map(generateObjectPairingId),
tables: db.tables?.map(generateTablePairingId),
views: db.views?.map(generateObjectPairingId),
procedures: db.procedures?.map(generateObjectPairingId),
functions: db.functions?.map(generateObjectPairingId),
triggers: db.triggers?.map(generateObjectPairingId),
matviews: db.matviews?.map(generateObjectPairingId),
};
}