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。
TypeScript aicliclickhousedatabasedatabase-clientdatabase-managementdockerguimcpmongodbmysqlpostgresqlredisrustsql-serversqlitetaurivue
<script setup lang="ts">
import { nextTick, ref, watch } from "vue";
import { useI18n } from "vue-i18n";
import { RefreshCcw } from "@lucide/vue";
import { Button } from "@/components/ui/button";
import { usePlDebugStore } from "@/stores/plDebugStore";
const { t } = useI18n();
const store = usePlDebugStore();
const outputScroll = ref<HTMLElement | null>(null);
watch(
() => store.output,
async () => {
await nextTick();
outputScroll.value?.scrollTo({ top: outputScroll.value.scrollHeight });
},
);
</script>
<template>
<div class="flex h-full flex-col">
<div class="flex justify-end border-b px-1 py-0.5">
<Button variant="ghost" size="sm" class="h-6 px-2 text-xs" :disabled="store.busy || !store.debugId" :title="t('plDebug.output.refresh')" @click="store.refreshLog()">
<RefreshCcw class="h-3.5 w-3.5" />
</Button>
</div>
<div ref="outputScroll" class="min-h-0 flex-1 overflow-auto p-2">
<pre v-if="store.output" class="whitespace-pre-wrap break-all font-mono text-xs">{{ store.output }}</pre>
<p v-else class="text-xs text-muted-foreground">
{{ store.debugId && store.terminated !== true ? t("plDebug.output.parked") : t("plDebug.output.empty") }}
</p>
</div>
</div>
</template>