feat(mongodb): add Compass-style collection import/export
This commit is contained in:
1 parent
bf4874906c
commit
8ff56b4837
47 files changed
+5626
-52
No files matched your search
@@ -14,6 +14,7 @@ const showSqlFileDialog = ref(false);
|
||||
const showDiagramDialog = ref(false);
|
||||
const showDocsDialog = ref(false);
|
||||
const showTableImportDialog = ref(false);
|
||||
const showMongoImportDialog = ref(false);
|
||||
const showTableDataGenerateDialog = ref(false);
|
||||
const showFieldLineageDialog = ref(false);
|
||||
const showDatabaseSearchDialog = ref(false);
|
||||
@@ -68,6 +69,9 @@ const tableImportPrefillConnectionId = ref("");
|
||||
const tableImportPrefillDatabase = ref("");
|
||||
const tableImportPrefillSchema = ref("");
|
||||
const tableImportPrefillTable = ref("");
|
||||
const mongoImportPrefillConnectionId = ref("");
|
||||
const mongoImportPrefillDatabase = ref("");
|
||||
const mongoImportPrefillCollection = ref("");
|
||||
const tableDataGeneratePrefillConnectionId = ref("");
|
||||
const tableDataGeneratePrefillDatabase = ref("");
|
||||
const tableDataGeneratePrefillSchema = ref("");
|
||||
@@ -246,6 +250,19 @@ export function useDialogSources() {
|
||||
},
|
||||
);
|
||||
|
||||
watch(
|
||||
() => connectionStore.mongoImportSource,
|
||||
(v) => {
|
||||
if (v) {
|
||||
mongoImportPrefillConnectionId.value = v.connectionId;
|
||||
mongoImportPrefillDatabase.value = v.database;
|
||||
mongoImportPrefillCollection.value = v.collection;
|
||||
showMongoImportDialog.value = true;
|
||||
connectionStore.mongoImportSource = null;
|
||||
}
|
||||
},
|
||||
);
|
||||
|
||||
watch(
|
||||
() => connectionStore.tableDataGenerateSource,
|
||||
(v) => {
|
||||
@@ -501,6 +518,7 @@ export function useDialogSources() {
|
||||
showDiagramDialog,
|
||||
showDocsDialog,
|
||||
showTableImportDialog,
|
||||
showMongoImportDialog,
|
||||
showTableDataGenerateDialog,
|
||||
showFieldLineageDialog,
|
||||
showDatabaseSearchDialog,
|
||||
@@ -551,6 +569,9 @@ export function useDialogSources() {
|
||||
tableImportPrefillDatabase,
|
||||
tableImportPrefillSchema,
|
||||
tableImportPrefillTable,
|
||||
mongoImportPrefillConnectionId,
|
||||
mongoImportPrefillDatabase,
|
||||
mongoImportPrefillCollection,
|
||||
tableDataGeneratePrefillConnectionId,
|
||||
tableDataGeneratePrefillDatabase,
|
||||
tableDataGeneratePrefillSchema,
|
||||
|
||||
Reference in new issue
Block a user