postgre - analyse foreign keys

This commit is contained in:
Jan Prochazka
2020-05-16 09:34:28 +02:00
parent 7d6008a441
commit 942f22f1a3
6 changed files with 57 additions and 9 deletions

View File

@@ -93,7 +93,10 @@ function SqlObjectList({ conid, database }) {
const [filter, setFilter] = React.useState('');
const objectList = _.flatten(
['tables', 'views', 'procedures', 'functions'].map((objectTypeField) =>
((objects || {})[objectTypeField] || []).map((obj) => ({ ...obj, objectTypeField }))
_.sortBy(
((objects || {})[objectTypeField] || []).map((obj) => ({ ...obj, objectTypeField })),
['schemaName', 'pureName']
)
)
);
const inputRef = React.useRef(null);