menu_book Course Curriculum (Bun) expand_more
Runtime Basics
Package Manager
Scripts & Tooling
Files & Streams
HTTP & Web APIs
SQLite & Data
Testing
Serialize access
Learn Serialize access in Bun with a focused explanation, a topic-specific example, edge guidance, and a mastery check.
12 min read
•
Intermediate
Advertisement
bun-059.ts
ts
db.run("BEGIN IMMEDIATE");
try{db.run("UPDATE counters SET value=value+1 WHERE id=1");db.run("COMMIT");}catch(e){db.run("ROLLBACK");throw e;}
What to watch
Content source & attribution
Original Syntaxis Content · Original Syntaxis Content