Bun SQLite

•
239
•

Executes high-performance SQLite database operations, prepared statements, and transactional queries using Bun's native driver.

The Bun SQLite skill equips Claude Code with deep implementation knowledge for Bun's native, high-performance `bun:sqlite` module. It provides reliable patterns for managing file-based and in-memory databases, executing type-safe prepared statements with positional or named parameters, managing atomic transactions across varied locking modes, and applying critical performance pragmas such as WAL mode for concurrent execution.

Key Features

01239 GitHub stars
02Configures file-based and in-memory SQLite instances with strict and read-only modes
03Executes prepared statements using positional and named parameter bindings
04Handles type-safe query mappings, BLOBs, and SQLite constraint error handling
05Manages atomic transactions with deferred, immediate, and exclusive locks
06Optimizes concurrent performance using WAL mode and PRAGMA configurations

Use Cases

01Executing high-throughput bulk inserts and batch updates inside atomic transactions
02Implementing clean repository patterns with pre-compiled SQLite statements in TypeScript
03Building embedded data storage and persistence layers for lightweight Bun APIs