fix(tree): label Xugu table child groups
This commit is contained in:
1 parent
7f5cb3b0cc
commit
3e26b7769b
3 files changed
+49
-19
No files matched your search
@@ -0,0 +1,25 @@
|
||||
import type { TreeNodeType } from "@/types/database";
|
||||
|
||||
const treeGroupNodeTypes = new Set<TreeNodeType>([
|
||||
"group-columns",
|
||||
"group-indexes",
|
||||
"group-fkeys",
|
||||
"group-triggers",
|
||||
"group-constraints",
|
||||
"group-table-partitions",
|
||||
"group-table-subpartitions",
|
||||
"group-tables",
|
||||
"group-views",
|
||||
"group-materialized-views",
|
||||
"group-procedures",
|
||||
"group-functions",
|
||||
"group-sequences",
|
||||
"group-packages",
|
||||
"group-types",
|
||||
"group-partitions",
|
||||
"group-extensions",
|
||||
]);
|
||||
|
||||
export function isTreeGroupNodeType(type: TreeNodeType): boolean {
|
||||
return treeGroupNodeTypes.has(type);
|
||||
}
|
||||
Reference in new issue
Block a user