Skip to content
VM-dashPublic
forked from Bare7a/BarSQL

About

Fast, local-first SQL client for PostgreSQL, MySQL/MariaDB, SQL Server, ClickHouse, SQLite and Turso. A native Rust + GPUI app for Windows, macOS and Linux. No accounts, no telemetry.

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

 
 

Repository files navigation

⚡ BarSQL

Rust GPUI License Release

A fast, local-first SQL workbench built with Rust and GPUI.

No cloud. No accounts. No telemetry.
Just a focused, native desktop tool for PostgreSQL, MySQL / MariaDB, SQL Server, ClickHouse, Turso / libSQL and SQLite, on Windows, macOS and Linux.

🌐 barsql.bare7a.eu · 🎬 Demo video · 📖 User Guide

demo.mp4

⬇️ Download

Get the latest build for Windows, macOS or Linux from barsql.bare7a.eu or the Releases page. No account needed, and every build updates itself.

macOS, with Homebrew:

brew install bare7a/tap/barsql

Windows, with Scoop:

scoop bucket add bare7a https://github.com/Bare7a/scoop-bucket
scoop install bare7a/barsql

Linux, with the install script:

curl -fsSL https://barsql.bare7a.eu/install.sh | sh

The macOS app is signed and notarized. The Windows build isn't code-signed yet, so SmartScreen asks once before the first launch: click More info → Run anyway.

Which file to pick, the install script's options, uninstalling and verifying a download: Installing BarSQL.


⚡ SQL tools are usually overkill. BarSQL isn’t.

Most are slow to start and heavy on memory, cloud-connected by default, tied to subscriptions or accounts, and overloaded with features you don’t use. BarSQL is built for developers who want speed, clarity and control, and it runs entirely on your machine.

🧳 Portable · ⚡ Fast startup · 🔒 Local-first · 🧠 Developer-focused · 🔄 Auto-updating

Under the hood:

  • 🦀 Rust from the database drivers up to the window
  • 🖥️ GPUI, the GPU-accelerated UI framework behind the Zed editor
  • 🧩 GPUI Kit components, including a code editor with tree-sitter highlighting
  • 🔌 Native drivers for each engine: tokio-postgres, mysql_async, a bundled SQLite, tiberius for SQL Server, and BarSQL's own HTTP clients for ClickHouse and Turso

👉 Everything you need. Nothing you don’t.

  • Query faster with smart, schema-aware autocomplete - functions included, with their signatures on hover
  • Edit SQL the VS Code way - multiple cursors, line commands, go to definition and a command palette
  • See what the server said - notices, warnings and PRINT output in a Messages tab
  • Check what a server is doing in one click - activity, blocking, sessions, table statistics
  • Reach databases behind a bastion over an SSH tunnel
  • Stream results - rows arrive as the driver yields them
  • Run multi-statement scripts and get a result tab per output
  • Edit rows in the grid - in a table, or in the results of a SELECT from one
  • Plot any result as a bar or line chart
  • Explore schemas instantly - down to indexes, constraints and triggers, or as an ER diagram
  • Design tables in a Structure tab and see the exact SQL before it runs
  • Rename, truncate, drop and back up tables straight from the schema tree
  • Compare two schemas and get the script that syncs them
  • Copy any object's DDL in one click
  • Import a CSV or run a .sql script
  • Save and reuse queries
  • Export anything in one click
  • Let AI assistants such as Claude read your databases over MCP - and change them only where you allow it
  • Auto-update with one click

🖥️ Screenshots

Editor
Editor
Transactions & multiple results
Transactions & multiple results
Table data
Table data
Cell editor
Cell editor
Grid
Grid
Export
Export
Connections
Connections
Quick Search
Quick Search
DDL viewer
DDL viewer
Plan viewer
Plan viewer
CSV & SQL import
CSV & SQL import
Structure editor
Structure editor
ER diagram
ER diagram
Quick charts
Quick charts
Appearance
Appearance

🗄️ Supported Databases

Database Read & write Read-only mode Secure transport SSH tunnel
PostgreSQL ✅ ✅ SSL - disable / require / verify-full ✅
MySQL ✅ ✅ TLS - disable / require / verify-full ✅
MariaDB ✅ ✅ TLS - disable / require / verify-full ✅
SQLite ✅ ✅ local file n/a
SQL Server ✅ ✅ TLS - disable / require / verify-full / strict (TDS 8.0) ✅
ClickHouse ✅ ✅ HTTP or HTTPS - disable / require / verify-full ✅
Turso / libSQL ✅ ✅ HTTPS, or HTTP for a local sqld self-hosted sqld

Per-engine details are in the engine notes.


📖 User Guide

Every feature in detail, one area per page:

Page What it covers
⬇️ Installing Which file to pick, Homebrew, Scoop, the Linux install script, the first launch, uninstalling
🔌 Connections Folders, read-only mode, SSL and TLS, SSH tunnels, SQLite extensions, engine notes
🧠 SQL Editor Autocomplete, multiple cursors, scripts, transactions, the query plan viewer, saved queries and history
🗃️ Schema Explorer The schema tree, ER diagrams, schema compare, Copy DDL, schema changes, the structure editor, table backups
📊 Results Grid Sorting, selection stats, quick charts, the cell and JSON viewers, editing data
📥 Import & Export CSV and SQL import, export formats
🤖 AI Assistants (MCP) Letting AI apps read your databases, and change them only where you allow it
🌍 The App Themes, languages, palettes, the status bar, keyboard shortcuts, the data folder, auto updates
🎨 Themes The 21 built-in themes, Select theme…, and making your own

🧳 Portable by Design

Everything lives in a single BarSQL-data/ folder. When the app sits somewhere writable, that folder is created right next to the executable (beside the .app bundle on macOS) - move it to a USB stick, network drive, or another PC and it just works.

What's in it, and where it goes when the app can't write beside itself: The App.


⚙️ Build from source

cargo run -p barsql --release

Requirements, tests and the project layout are in CONTRIBUTING.md, packaging and releases in RELEASING.md.


🤝 Contributing

Issues and pull requests are welcome. Good places to start:

If BarSQL is useful to you, a ⭐ helps other people find it.


📄 License

GPL-3.0-only; see LICENSE.

About

Fast, local-first SQL client for PostgreSQL, MySQL/MariaDB, SQL Server, ClickHouse, SQLite and Turso. A native Rust + GPUI app for Windows, macOS and Linux. No accounts, no telemetry.

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages