dunkbing/dearsql

A fast, minimal, cross-platform database client built with C++ and ImGui

C++

171

668 commits

updated Oct 15, 2026

See the code

See what people are saying

README

DearSQL

DearSQL

A simple, cross-platform database client built with Dear ImGui.

Download

GitHub all releases

Screenshot

Features

  • SQLite, DuckDB, PostgreSQL, MySQL, MariaDB, SQL Server, Oracle, MongoDB, Redis and more
  • Cross-platform: macOS (Metal), Linux (GTK4 + OpenGL), Windows (DirectX 11)
  • Database browser: Sidebar for exploring schemas, tables, and structure
  • Native file dialogs for SQLite files
  • Native alert/confirm dialogs per platform
  • Saves and restores previous database connections
  • Run SQL queries with formatted results display
  • Query history

Command line

The same binary runs in the terminal (docs):

dearsql --tui [connection]   # browse and query in the terminal
dearsql --mcp                # database tools for coding agents (MCP)
dearsql --lsp                # SQL completion and hover for editors

A connection is a saved name, a URL, or a SQLite/DuckDB/CSV file. For agents:

claude mcp add dearsql -- dearsql --mcp

Installation

Download the latest release for macOS, Linux, and Windows from GitHub Releases, or on macOS/Linux:

curl -fsSL https://dearsql.dev/install.sh | sh

Arch Linux (AUR)

yay -S dearsql
# or
paru -S dearsql

Build instructions

claude "build this project"

Built With

cpp
database
imgui
sql

dunkbing/dearsql

A fast, minimal, cross-platform database client built with C++ and ImGui

C++

171

668 commits

updated Oct 15, 2026

See the code

See what people are saying

README

DearSQL

DearSQL

A simple, cross-platform database client built with Dear ImGui.

Download

GitHub all releases

Screenshot

Features

  • SQLite, DuckDB, PostgreSQL, MySQL, MariaDB, SQL Server, Oracle, MongoDB, Redis and more
  • Cross-platform: macOS (Metal), Linux (GTK4 + OpenGL), Windows (DirectX 11)
  • Database browser: Sidebar for exploring schemas, tables, and structure
  • Native file dialogs for SQLite files
  • Native alert/confirm dialogs per platform
  • Saves and restores previous database connections
  • Run SQL queries with formatted results display
  • Query history

Command line

The same binary runs in the terminal (docs):

dearsql --tui [connection]   # browse and query in the terminal
dearsql --mcp                # database tools for coding agents (MCP)
dearsql --lsp                # SQL completion and hover for editors

A connection is a saved name, a URL, or a SQLite/DuckDB/CSV file. For agents:

claude mcp add dearsql -- dearsql --mcp

Installation

Download the latest release for macOS, Linux, and Windows from GitHub Releases, or on macOS/Linux:

curl -fsSL https://dearsql.dev/install.sh | sh

Arch Linux (AUR)

yay -S dearsql
# or
paru -S dearsql

Build instructions

claude "build this project"

Built With

cpp
database
imgui
sql

Significant stargazers

Dialga

62 followers · starred May 2026

Stanislav Ershov

62 followers · starred Apr 2026