Native rendering · local-first

A lightweight database client,
without a WebView.

DB-G draws its interface in Go and ships as one executable with six data sources inside. No Electron, no runtime, no account — open it and connect, query, edit and export, all on your machine.

Latest v1.0.6 · Apache-2.0

Systems
Windows · Linux
Shape
Single binary · no WebView
License
Apache-2.0
Data sources
SQLite · MySQL · PostgreSQL · ClickHouse · rqlite · Redis
The DB-G main window: data source tree, SQL editor and result grid
Object tree, SQL editor and result grid in one window.

Why DB-G

01

One window, six data sources

SQLite, MySQL, PostgreSQL, ClickHouse, rqlite and Redis share the same connection manager, tabs, result grid and export flow. No second client just to look at a Redis key.

  • Connection profiles, folders and colored tags, reordered with Ctrl+drag
  • TLS, custom CA and per-connection query timeouts
  • Object trees load a page at a time and cache metadata on disk for 24 hours
02

A SQL workbench built for the keyboard

Ctrl+Enter runs, Ctrl+Tab jumps back to the last console, Ctrl+P opens the command palette. Completion, formatting, find-and-replace and the object tree all have shortcuts — and every one can be rebound.

  • Run the selection or the statement under the caret; run several at once
  • Named consoles auto-save; the workspace returns on restart
  • The command palette searches actions, consoles and SQL text
03

Big catalogs stay responsive

Object groups load a page at a time, so tens of thousands of tables only query what is on screen. The result grid is virtualized: a million rows render only what you can see.

  • Group counts arrive first; expanding loads pages
  • Completion reads at most the first 2000 entries
  • Paging fetches more rows without clearing what you have
04

Results you can work with

Pin a result to compare, edit cells and commit in a single transaction, inspect JSON as a tree, and export to CSV, JSON, JSONL or SQL INSERT.

  • Insert, update and delete directly on single-table primary-key results
  • Pin an old result, refresh, then compare side by side
  • Stream a full export; the filename carries a timestamp
The DB-G result grid with editable cells and JSON field previews
05

An assistant that knows your SQL

Chat-to-SQL, rewrites and error fixes. Context has a budget and is redacted; generated SQL is self-checked and never bypasses the dangerous-statement guard. Without a model configured, everything else still works.

  • Preview the context and token budget before sending
  • Recent conversation memory and one-hop foreign-key lookup
  • The API key stays in the local configuration
The DB-G AI panel answering with the current connection and SQL in context
06

Your data stays here

Connection passwords are encrypted on this machine and logs are redacted. No account, no telemetry, no cloud sync. Every setting lives locally; uninstalling leaves nothing behind.

  • Passwords encrypted locally; logs redacted
  • Git sync for connections and consoles, with key checks and credential scanning
  • Themes, fonts, density and instant Chinese/English switching
DB-G settings window with appearance, fonts, AI assistant and sync sections

And also

Redis workbench

A paged SCAN key browser, editors for all six types, a command REPL, slow log and keyspace stats.

Data source monitor

Connections and sessions, QPS/TPS, cache hits, CPU and memory trends, searchable processes with Kill.

Import and sync

Import .dbg, DataGrip and DBeaver connections; sync connections and consoles through Git.

Execution plans

One plan tree, ANALYZE on PostgreSQL and MySQL, and ClickHouse JSON plans.

External SQL files

Consoles bind both ways to a .sql file on disk; `-o` opens one and focuses the running window.

Dangerous SQL guard

DELETE and UPDATE without WHERE ask first; AI-generated SQL gets no exemption.

Appearance and language

Theme, accent, font and density, instant Chinese/English switching, remembered window state.

Signed updates

Checks in the background, verifies the signature, then replaces the binary. Staying put is allowed.

What's new

v1.0.6

Release notes are currently maintained in Chinese.

Full changelog