Skip to content

armgit / dbx

Public Imported from GitHub
0

25 MB lightweight cross-platform database client for 100+ databases, including MySQL, PostgreSQL, SQLite, Redis, MongoDB, DuckDB, SQL Server, and Dameng. Built-in AI, MCP Server, CLI, desktop and Docker. | 轻量级跨平台数据库管理工具,支持 MySQL、PostgreSQL、SQLite、Redis、MongoDB、达梦等 100+ 数据库,提供桌面端、Docker、CLI、内置 AI 助手和 MCP。

feat(toolbar): add Compare Databases and Compare Data buttons

t8y21380cfe04e67
diff --git a/src/App.vue b/src/App.vue
index bf8558af82..320e3da272 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -552,6 +552,8 @@ onUnmounted(() => {
@check-updates="checkUpdates()"
@open-transfer="dialogs.showTransferDialog.value = true"
@open-sql-file="dialogs.showSqlFileDialog.value = true"
+ @open-schema-diff="dialogs.showSchemaDiffDialog.value = true"
+ @open-data-compare="dialogs.showDataCompareDialog.value = true"
/>
<div
diff --git a/src/components/layout/AppToolbar.vue b/src/components/layout/AppToolbar.vue
index 943b72d5a7..a0bcd24164 100644
--- a/src/components/layout/AppToolbar.vue
+++ b/src/components/layout/AppToolbar.vue
@@ -11,6 +11,8 @@ import {
Bot,
ArrowLeftRight,
FileCode,
+ GitCompareArrows,
+ TableProperties,
Settings,
CloudDownload,
} from "lucide-vue-next";
@@ -52,6 +54,8 @@ const emit = defineEmits<{
"check-updates": [];
"open-transfer": [];
"open-sql-file": [];
+ "open-schema-diff": [];
+ "open-data-compare": [];
}>();
const { t } = useI18n();
@@ -110,6 +114,28 @@ function onToolbarDblClick(e: MouseEvent) {
{{ t("sqlFile.title") }}
</Button>
+ <Button
+ variant="ghost"
+ size="sm"
+ class="h-8 px-2 text-xs gap-1"
+ @click="emit('open-schema-diff')"
+ :disabled="!hasConnections"
+ >
+ <GitCompareArrows class="h-3.5 w-3.5" />
+ {{ t("diff.title") }}
+ </Button>
+
+ <Button
+ variant="ghost"
+ size="sm"
+ class="h-8 px-2 text-xs gap-1"
+ @click="emit('open-data-compare')"
+ :disabled="!hasConnections"
+ >
+ <TableProperties class="h-3.5 w-3.5" />
+ {{ t("dataCompare.title") }}
+ </Button>
+
<div class="flex-1" data-tauri-drag-region />
<Tooltip>