Clutch

Query, browse and edit databases without leaving Emacs

Image 1 of 1: Query console with a result grid below and an XML value viewer open

An Emacs client for MySQL, PostgreSQL, SQLite, MongoDB, Redis and, through a JVM agent, Oracle, SQL Server, Snowflake and other JDBC databases: queries in editable buffers, results in an interactive grid, plan trees, exports, and SQL row edits staged and previewed before they run.

Trade-offs

  • Native Elisp paths where a protocol package exists, and a JVM sidecar only for JDBC databases, which keeps metadata refresh on its own session but adds Java 17 and a jar to install.
  • Row edits are staged only when a stable source row can be identified, so some results stay read-only rather than risk updating the wrong row.
  • A SELECT that writes runs once as written, never paged, so it cannot run twice, while a large RETURNING result has to arrive in full.

Q&A2

Once statements stopped blocking Emacs, a 30-second limit only killed long queries the user meant to run. Clutch now adds no limit of its own and server limits still apply; requests Emacs waits on, such as paging, keep a positive budget.

Reviews

Loading reviews

    More in Database internals

    See all 29 →
    • PaganelData migration engine that verifies the destination down to the row
    • FeOxDBEmbedded key-value store in Rust with write-behind durability
    • SNKVEmbedded key-value store built directly on SQLite's B-tree
    • RuvioRust key-value server that speaks RESP, with locks and queues as commands
    • musqlSQLite-compatible SQL engine on columnar storage and a JIT
    • EgresPostgres-compatible database in Zig for heavy, multi-tenant workloads

    More in SQL

    See all 11 →
    • cerberusPrometheus, Loki and Tempo HTTP gateway for ClickHouse
    • dbxliteBrowser SQL workbench on DuckDB for local files, BigQuery and Snowflake
    • DataZenDesktop database workspace for developers and AI agents
    • sqlmuxtmux-style terminal database client with Vim keybindings
    • SlothDBExperimental embedded SQL engine in C++20, from scratch
    • SQL CrackVS Code extension that draws SQL query flow, dependencies and column lineage

    More in MongoDB

    See all 4 →
    • SyncleKeeps databases in sync across engines in real time, without Kafka
    • sharelySelf-hosted file sharing with ShareX uploads, short links and a gallery
    • MemongoLong-term memory for AI agents and teams, built on MongoDB
    • MailCheapNewsletter app priced by emails sent, not by subscribers