SQLite Patterns & Best Practices
Provides optimized SQLite implementation patterns, database schemas, and advanced query techniques for Node.js environments.
This skill equips Claude with standardized patterns for working with SQLite databases, specifically optimized for the better-sqlite3 driver. It covers the full lifecycle of database management, from initial setup and table creation to advanced features like Full-Text Search (FTS5), JSON functions, and performance tuning via Write-Ahead Logging (WAL) mode. By utilizing these patterns, developers can ensure data integrity through robust transactions, implement efficient indexing strategies, and follow industry best practices for data typing and soft deletes in lightweight relational databases.
主な機能
01Standardized CRUD operations using better-sqlite3 and prepared statements
02Robust transaction management with support for nested savepoints
036 GitHub stars
04Standardized patterns for ISO date/time handling and boolean data types
05Advanced query implementations including JSON handling and Full-Text Search (FTS5)
06Database performance optimization patterns including WAL mode and caching
ユースケース
01Managing complex data relationships and transactions in a lightweight backend environment
02Setting up a local persistent data store for a Node.js CLI or desktop application
03Implementing high-performance search functionality using SQLite's virtual tables