feat(mongodb): bson dumps and database backup/restore

This commit is contained in:
Hand Sonic authored and GitHub committed 2026-09-16 22:46:48 +08:00
1 parent ecc1135de3
commit f5673ca0a1
54 files changed
+6355 -106

No files matched your search

@@ -15,6 +15,10 @@ const showDiagramDialog = ref(false);
const showDocsDialog = ref(false);
const showTableImportDialog = ref(false);
const showMongoImportDialog = ref(false);
const showMongoDatabaseDumpDialog = ref(false);
const mongoDatabaseDumpPrefillConnectionId = ref("");
const mongoDatabaseDumpPrefillDatabase = ref("");
const mongoDatabaseDumpMode = ref<"dump" | "restore">("dump");
const showTableDataGenerateDialog = ref(false);
const showFieldLineageDialog = ref(false);
const showDatabaseSearchDialog = ref(false);
@@ -263,6 +267,18 @@ export function useDialogSources() {
},
);
watch(
() => connectionStore.mongoDatabaseDumpSource,
(source) => {
if (!source) return;
mongoDatabaseDumpPrefillConnectionId.value = source.connectionId;
mongoDatabaseDumpPrefillDatabase.value = source.database;
mongoDatabaseDumpMode.value = source.mode;
showMongoDatabaseDumpDialog.value = true;
connectionStore.mongoDatabaseDumpSource = null;
},
);
watch(
() => connectionStore.tableDataGenerateSource,
(v) => {
@@ -519,6 +535,10 @@ export function useDialogSources() {
showDocsDialog,
showTableImportDialog,
showMongoImportDialog,
showMongoDatabaseDumpDialog,
mongoDatabaseDumpPrefillConnectionId,
mongoDatabaseDumpPrefillDatabase,
mongoDatabaseDumpMode,
showTableDataGenerateDialog,
showFieldLineageDialog,
showDatabaseSearchDialog,