sqlite

Design SQLite schemas, migrations, and performance tuning for embedded apps.

16|9|Updated Nov 6, 2013
One-click install
npx skills add https://github.com/erikstmartin/dotfiles --skill sqlite-erikstmartin
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sqlite
Source: https://github.com/erikstmartin/dotfiles/tree/main/skills/catalog/sql/sqlite
Command: npx skills add https://github.com/erikstmartin/dotfiles --skill sqlite-erikstmartin

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill provides structured guidance for designing and deploying SQLite databases, covering schema design, safe migrations, performance tuning, and appropriate WAL/locking configurations.

Core Features & Use Cases

  • Schema design guidelines for SQLite with integrity constraints and practical examples.
  • Safe migration patterns, indexing strategies, and pragmas for reliable, concurrent access.
  • Use cases include embedded applications, local data stores, and small-to-mid scale deployment scenarios.

Quick Start

Create a starter SQLite schema and apply the recommended pragmas and migration steps to begin.

Frequently Asked Questions about sqlite

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

FAQPage Schema
How do I configure SQLite WAL mode and pragmas for concurrent access?

To configure SQLite WAL mode for concurrent access, apply write-ahead logging pragmas and locking configurations. This enables reliable, concurrent read and write access in embedded applications by managing how the database file handles simultaneous transactions safely.

What is the best way to structure SQLite schema design with integrity constraints?

The best way to structure SQLite schema design is to apply explicit integrity constraints and practical indexing strategies. Proper constraints ensure data validity in local file-based deployments, while efficient indexing optimizes query performance for embedded apps.

How do I run safe SQLite migrations in an embedded application?

To run safe SQLite migrations in an embedded application, use concurrency-aware migration patterns. This involves applying schema changes with proper locking configurations to prevent database corruption or locks during local file-based deployments.

Does SQLite performance tuning work for small-to-mid scale local data stores?

Yes, SQLite performance tuning works for small-to-mid scale local data stores. By adjusting pragmas, applying efficient indexing strategies, and configuring WAL mode, you can optimize database reliability and query speed for embedded applications.

When do I need to adjust SQLite locking configurations?

You need to adjust SQLite locking configurations when your embedded application requires safe migrations or concurrent access. Proper locking prevents write conflicts and ensures reliable performance across small-to-mid scale local file-based deployments.