Bun adds Bun.SQL — a zero‑dependency unified SQL client (MySQL, PostgreSQL, SQLite)

Node.jsBunDatabasesBackend

Key update

Bun v1.2.21 (Aug 25, 2025) introduces Bun.SQL — a unified, zero‑dependency SQL client exposing the same tagged‑template API across PostgreSQL, MySQL/MariaDB (native driver implemented in Zig) and SQLite (including in‑memory usage). This is shipped as part of the runtime so you can import and use a single database API without adding third‑party drivers or native packages. (bun.com)

Why it matters

Practically, Bun.SQL closes a major friction point for building backend services on Bun: no separate driver installation or native build step for the three most common SQL engines. That reduces supply‑chain and CI complexity (fewer platform‑specific native deps), makes small single‑binary or compiled Bun apps simpler to deploy, and lowers the effort to prototype or port services between SQLite/Postgres/MySQL because the API is consistent. For teams considering Bun for production services, this is worth evaluating now — run integration tests for pooling, transaction semantics, connection limits and feature parity with your current drivers, but expect significantly faster iteration and simpler CI for many use cases. The release notes also confirm the MySQL/MariaDB driver is implemented in Zig and that SQLite support mirrors the Postgres tagged‑template ergonomics. (bun.com)

Source

Read Next