feat(mongodb): add Compass-style collection import/export

This commit is contained in:
onenewcode authored and GitHub committed 2026-09-12 21:59:29 +08:00
1 parent bf4874906c
commit 8ff56b4837
47 files changed
+5626 -52

No files matched your search

@@ -139,6 +139,16 @@ export function useSidebarTreeToolRuntime(options: SidebarTreeToolRuntimeOptions
};
}
function openMongoImport() {
const node = activeNode.value;
if (!node.connectionId || !node.database || node.type !== "mongo-collection") return;
connectionStore.mongoImportSource = {
connectionId: node.connectionId,
database: node.database,
collection: node.label,
};
}
function openStructureEditor() {
const node = activeNode.value;
if (!node.connectionId || !node.database) return;
@@ -180,6 +190,7 @@ export function useSidebarTreeToolRuntime(options: SidebarTreeToolRuntimeOptions
openDiagram,
openDocs,
openFieldLineage,
openMongoImport,
openScheduledBackups,
openSchemaDiff,
openSchemaDiffForRoutine,