mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-05-03 17:33:58 +00:00
apps - disabled VFK views and queries
This commit is contained in:
@@ -29,9 +29,8 @@
|
|||||||
let refTableName = null;
|
let refTableName = null;
|
||||||
let refSchemaName = null;
|
let refSchemaName = null;
|
||||||
|
|
||||||
$: refTableInfo =
|
$: refTableInfo = $dbInfo?.tables?.find(x => x.pureName == refTableName && x.schemaName == refSchemaName);
|
||||||
$dbInfo?.tables?.find(x => x.pureName == refTableName && x.schemaName == refSchemaName) ||
|
// $dbInfo?.views?.find(x => x.pureName == refTableName && x.schemaName == refSchemaName);
|
||||||
$dbInfo?.views?.find(x => x.pureName == refTableName && x.schemaName == refSchemaName);
|
|
||||||
|
|
||||||
onMount(() => {
|
onMount(() => {
|
||||||
if (columnName) {
|
if (columnName) {
|
||||||
@@ -59,7 +58,7 @@
|
|||||||
notSelected
|
notSelected
|
||||||
options={[
|
options={[
|
||||||
..._.sortBy($dbInfo?.tables || [], ['schemaName', 'pureName']),
|
..._.sortBy($dbInfo?.tables || [], ['schemaName', 'pureName']),
|
||||||
..._.sortBy($dbInfo?.views || [], ['schemaName', 'pureName']),
|
// ..._.sortBy($dbInfo?.views || [], ['schemaName', 'pureName']),
|
||||||
].map(tbl => ({
|
].map(tbl => ({
|
||||||
label: fullNameToLabel(tbl),
|
label: fullNameToLabel(tbl),
|
||||||
value: fullNameToString(tbl),
|
value: fullNameToString(tbl),
|
||||||
|
|||||||
@@ -72,7 +72,7 @@
|
|||||||
text: 'New SQL command',
|
text: 'New SQL command',
|
||||||
onClick: () => handleNewSqlFile('command.sql', 'Create new SQL command', COMMAND_TEMPLATE),
|
onClick: () => handleNewSqlFile('command.sql', 'Create new SQL command', COMMAND_TEMPLATE),
|
||||||
},
|
},
|
||||||
{ text: 'New query view', onClick: () => handleNewSqlFile('query.sql', 'Create new SQL query', QUERY_TEMPLATE) },
|
// { text: 'New query view', onClick: () => handleNewSqlFile('query.sql', 'Create new SQL query', QUERY_TEMPLATE) },
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user