In version 1.2.0
, Bun has issues with executing concurrent statements, which may lead to errors if you try to run several queries simultaneously.
We’ve created a github issue that you can track. Once it’s fixed, you should no longer encounter any such errors on Bun’s SQL side
Drizzle <> Bun SQL
This guide assumes familiarity with:
- Database connection basics with Drizzle
- Bun - website
- Bun SQL - native bindings for working with PostgreSQL databases - read here
According to the official website, Bun is a fast all-in-one JavaScript runtime.
Drizzle ORM natively supports bun sql
module and it’s crazy fast 🚀
WARNING
Step 1 - Install packages
npm
yarn
pnpm
bun
Step 2 - Initialize the driver and make a query
If you need to provide your existing driver: