mirror of
https://github.com/dbgate/dbgate
synced 2024-11-07 20:26:23 +00:00
optimalization
This commit is contained in:
parent
cb2a0b2492
commit
ca1c7cc556
@ -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),
|
||||
};
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user