The Bun team has released version 1.2.21 of its JavaScript bundler and runtime, written in Zig, adding features including built-in drivers for MySQL and SQLite, a YAML parser, and a secrets manager for tools and local development.
The new database drivers are part of the bun.SQL API, introduced in January, which initially supported only PostgreSQL. Now Bun also supports MySQL and MariaDB. In addition, a SQLite client, which has long been part of Bun as bun:sqlite, has been added to Bun.SQL, described in the docs as "a unified API for multiple database systems."
According to Bun creator Jarred Sumner, Bun.SQL is nine times faster than using the mysql2 package with Node.js, and over four times faster than using the MariaDB client with Node, based on the time taken to run 100,000 simple que