mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-20 20:35:59 +00:00
perspectives support views
This commit is contained in:
@@ -142,6 +142,12 @@
|
||||
tab: 'TableStructureTab',
|
||||
icon: 'img view-structure',
|
||||
},
|
||||
{
|
||||
label: 'Open perspective',
|
||||
tab: 'PerspectiveTab',
|
||||
forceNewTab: true,
|
||||
icon: 'img perspective',
|
||||
},
|
||||
{
|
||||
label: 'Drop view',
|
||||
isDrop: true,
|
||||
@@ -193,12 +199,6 @@
|
||||
dropViews: true,
|
||||
},
|
||||
},
|
||||
{
|
||||
label: 'Create perspective',
|
||||
tab: 'PerspectiveTab',
|
||||
forceNewTab: true,
|
||||
icon: 'img perspective',
|
||||
},
|
||||
],
|
||||
matviews: [
|
||||
{
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
PerspectiveDataProvider,
|
||||
PerspectiveTableColumnNode,
|
||||
PerspectiveTableNode,
|
||||
PerspectiveViewNode,
|
||||
} from 'dbgate-datalib';
|
||||
|
||||
import _ from 'lodash';
|
||||
@@ -60,6 +61,8 @@
|
||||
$: loader = new PerspectiveDataLoader(apiCall);
|
||||
$: root = $tableInfo
|
||||
? new PerspectiveTableNode($tableInfo, $dbInfo, config, setConfig, dataProvider, { conid, database }, null)
|
||||
: $viewInfo
|
||||
? new PerspectiveViewNode($viewInfo, $dbInfo, config, setConfig, dataProvider, { conid, database }, null)
|
||||
: null;
|
||||
|
||||
// $: console.log('CONFIG', config);
|
||||
|
||||
Reference in New Issue
Block a user