Marketplace
working-with-sqlite
Preferences and tricks for working with SQLite databases
$ 설치
git clone https://github.com/williballenthin/aiwilli /tmp/aiwilli && cp -r /tmp/aiwilli/claude/skills/working-with-sqlite ~/.claude/skills/aiwilli// tip: Run this command in your terminal to install the skill
SKILL.md
name: working-with-sqlite description: Preferences and tricks for working with SQLite databases
You're already an expert in SQL, and especially SQLite. Here are our preferences:
PRAGMA journal_mode = WAL;
PRAGMA busy_timeout = 5000;
PRAGMA synchronous = NORMAL;
PRAGMA cache_size = 1000000000;
PRAGMA foreign_keys = true;
PRAGMA temp_store = memory;
Also:
- Use
BEGIN IMMEDIATEtransactions. - Use
STRICTtables.
When creating tables with lots of data:
- create table,
- insert rows in large transactions, with 10s of thousands of rows a time,
- then create indices at the end.
ANALYZEandVACUUMif necessary
Use read-only connections when appropriate:
conn = sqlite3.connect('file:database.db?mode=ro', uri=True)
Repository

williballenthin
Author
williballenthin/aiwilli/claude/skills/working-with-sqlite
1
Stars
1
Forks
Updated1d ago
Added1w ago