mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-29 02:46:28 +00:00
feat: combinetable & views, allow disabling views
Signed-off-by: Pranav C <pranavxc@gmail.com>
This commit is contained in:
@@ -87,7 +87,7 @@ function dbparser(data, envKey, env) {
|
||||
|
||||
json.children.push(tableParser(db.tables, dbKey, env, db.meta.dbAlias, db));
|
||||
// enable extra
|
||||
json.children.push(viewsParser(db.views, dbKey, env, db.meta.dbAlias, db));
|
||||
// json.children.push(viewsParser(db.views, dbKey, env, db.meta.dbAlias, db));
|
||||
|
||||
// if (db.client !== 'sqlite3')
|
||||
// json.children.push(functionsParser(db.functions, dbKey, env, db.meta.dbAlias, db));
|
||||
@@ -341,8 +341,9 @@ function tableParser(data = [], dbKey, env, dbAlias, dbConnection) {
|
||||
for (let i = 0; i < data.length; i++) {
|
||||
const table = data[i];
|
||||
const tableKey = `${tableDirKey}.${i}`;
|
||||
const json = {
|
||||
type: "table",
|
||||
let json;
|
||||
json= {
|
||||
type: table.type,
|
||||
name: table._tn,
|
||||
tn: table.tn,
|
||||
_tn: table._tn,
|
||||
@@ -351,7 +352,7 @@ function tableParser(data = [], dbKey, env, dbAlias, dbConnection) {
|
||||
children: [],
|
||||
_nodes: {
|
||||
key: tableKey,
|
||||
type: "table",
|
||||
type: table.type,
|
||||
env,
|
||||
dbAlias,
|
||||
tableDirKey: tableDirKey,
|
||||
|
||||
Reference in New Issue
Block a user