基于 AI 的离线优先数据库工作台 — 通过 AI 协助进行导入/导出/迁移/比较/快照
dqex is a cross-platform database workbench that ships as a single static binary — no JVM, no Electron, no installers, no network required. It packs export, import, migration, comparison, snapshots, Excel data dictionaries, a full SQL terminal, and an AI assistant into one tool, with both a polished Web UI and a scriptable CLI sharing one engine.
1. Download the zip for your platform from the Releases page — macOS (Intel / Apple Silicon), Linux (x64 / arm64), Windows (x64). No installation required.
2. Unzip and run
unzip dqex-*.zip && cd dqex && ./start.sh:: Windows
start.bat3. Open the Web UI
http://127.0.0.1:8181That's it — add a connection and start exporting, comparing or querying. Nothing leaves your machine.
Optional: install to PATH, run as a daemon, or stop it
./install.sh # install to /usr/local/bin (optional)
dqex # start Web UI at 127.0.0.1:8181
./start.sh -d # background daemon
./stop.sh # stop the daemoninstall.bat :: install to %LOCALAPPDATA%\dqex and add to PATH
dqex :: start Web UI in a new terminal
start.bat -d :: background
stop.bat :: stop background serviceNot a Web UI person? Every capability below also exists as a CLI command, and every command can emit JSON — see the CLI section further down.
| Feature | Web | CLI | Description |
|---|---|---|---|
| Export | ✅ | export (exp) |
Schema + data → SQL file (zip / gzip), conditional & consistent |
| Import | ✅ | import (imp) |
SQL / zip file → database, auto create tables, batch inserts |
| Migrate | ✅ | migrate (mig) |
Database → database, cross-dialect (e.g. MySQL → PostgreSQL) |
| Compare | ✅ | compare (cmp) |
Schema & data diff between two databases |
| Data Dictionary | ✅ | dictionary (dict) |
Tables + comments → styled Excel (.xlsx), audit-ready |
| Snapshot | ✅ | snapshot (snap) |
Full create / list / show / delete / compare lifecycle |
| SQL Query | ✅ | sql |
Web query terminal + table browser; CLI interactive REPL with JSON output |
| AI-Assisted SQL | ✅ | \ai in sql |
Agent probes real schema, generates SQL per dialect, requires confirmation |
| Connections | ✅ | conn (cn) |
Save / test / delete database connections |
| Saved Tasks | ✅ | task (tk) |
Reuse one-click task configs (--task ) |
| History | ✅ | history (his) |
Execution log for troubleshooting & audit export |
| Shell Completion | — | completion |
zsh / bash completion scripts |
If DBeaver works in your environment, use it. It is a bigger, more mature tool and it is free. dqex is not trying to win on breadth — it is built for the environments DBeaver structurally cannot enter.
| dqex | DBeaver | Navicat | DataGrip | |
|---|---|---|---|---|
| Install form | Single static binary | JVM + driver jars | Installer, licensed | IDE, licensed |
| Air-gapped deploy | Copy and run | Manual JVM + jars | License constrained | License constrained |
| Time to first query | Under a minute | Several minutes | Install + activate | Install + activate |
| Cross-dialect migration | Built in, automatic | No | Yes | Partial |
| Excel data dictionary | One command | Plugin | Yes | No |
| Snapshot diff | Built in | No | No | No |
| AI-assisted SQL | Built in, offline fallback | No | Limited | Limited |
| Database breadth | MySQL, PostgreSQL, Oracle | Very wide | Wide | Wide |
| Price | Free, MIT | Free | Paid per seat | Paid |
Where dqex is weaker: it supports three database engines, not twenty. If you need SQL Server, ClickHouse, MongoDB or anything outside MySQL / PostgreSQL / Oracle, DBeaver is the better answer today. Additional drivers are explicitly welcome as contributions.
Full comparison, including Bytebase and the known limitations: docs/COMPARISON.md.
…\e-edit before running\ai continue for follow-ups; Web UI supports generate / explain / optimize / fix with side-by-side diff preview and one-click apply\template top_n orders amount 10) works in fully isolated networksmake dev # Go :8181 + Vite :5281 with hot reload & debugging
make build # single binary ./dqex (frontend embedded)
make release # cross-platform packages → release/
make install # → /usr/local/binContributions are what make open source great — and they earn you a place on the stargazers list too! ⭐
We welcome:
How to contribute:
git checkout -b feature/your-featuregit commit -am 'feat: add something awesome'git push origin feature/your-featureConventions: Go code follows gofmt; TypeScript follows ESLint + Prettier; commits follow Conventional Commits.
MIT © 2026 fj1981
⭐ Star us on GitHub — it tells us you care, and helps more people discover the tool. Fork it, play with it, break it, and send us a PR!
暂无开放 Issues,或尚未同步最近议题。