sqlite-expert

Guide SQLite developers on WAL, PRAGMAs, FTS5, and migration strategies.

2|Updated Feb 28, 2024
One-click install
npx skills add https://github.com/coagus/php-api-builder --skill sqlite-expert-coagus
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sqlite-expert
Source: https://github.com/coagus/php-api-builder/tree/main/.claude/skills/sqlite-expert
Command: npx skills add https://github.com/coagus/php-api-builder --skill sqlite-expert-coagus

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Solves the challenge of mastering SQLite by providing expert guidance on type affinity, WAL, PRAGMAs, and advanced features. It helps developers maximize performance and reliability in embedded, testing, and local development scenarios.

Core Features & Use Cases

  • In-depth guidance on type affinity, WAL mode, PRAGMAs, FTS5, JSON1, migrations, and indexing strategies.
  • Practical recommendations for embedded apps, mobile tooling, and test harnesses with SQLite as the database.
  • Performance tuning, schema design, and migration best practices for SQLite-centric workloads.

Quick Start

Learn and apply expert SQLite tips to optimize your existing database and development workflow.

Frequently Asked Questions about sqlite-expert

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I configure SQLite WAL mode and PRAGMAs to maximize database performance?

To maximize SQLite performance, configure WAL mode for concurrent read/write access and apply PRAGMAs to tune cache size, journal mode, and synchronization. This ensures high reliability and optimized throughput for embedded and local development workloads.

What is SQLite type affinity and how does it affect STRICT tables?

SQLite type affinity determines how data is stored and coerced based on column declarations. Using STRICT tables enforces strict type checking, rejecting data that does not match the declared column types to ensure schema integrity.

How do I perform safe SQLite schema migrations in a test harness?

Safe SQLite schema migrations in test harnesses require applying step-by-step migration strategies that preserve data integrity. This involves using transactional DDL and testing migration scripts locally before deployment to prevent database corruption.

Can I use SQLite FTS5 and JSON1 extensions for advanced search and data handling?

Yes, SQLite FTS5 and JSON1 extensions support advanced full-text search queries and JSON document manipulation. These features enable complex data extraction and indexing directly within embedded applications and mobile tooling.

What are the limitations of using SQLite for embedded apps and mobile tooling?

SQLite limitations for embedded apps include potential write concurrency bottlenecks in high-scale scenarios and file-locking constraints. It is optimized for local development and testing rather than high-volume network-attached server workloads.

When do I need foreign keys and indexing strategies in SQLite?

Foreign keys and indexing strategies are needed in SQLite to enforce relational data integrity and accelerate query performance. Proper indexing prevents full table scans, while foreign keys ensure valid cross-table references.