SQLite best practices for Go — WAL mode, foreign_keys, busy_timeout, SetMaxOpenConns, context-aware queries, transactions, migrations
98
99%
Does it follow best practices?
Impact
97%
2.36xAverage score across 5 eval scenarios
Passed
No known issues
A developer wants to build a local note-taking CLI application in Go that stores data in SQLite. The app should be a simple command-line tool, not a web server.
The app needs to support:
Each note has: id (integer primary key), title, body, created_at, updated_at.
Tags have: id (integer primary key), name (unique).
A join table links notes to tags.
Produce:
main.go -- CLI entry point that parses subcommands (create, list, search, delete, tag, list-by-tag)db.go -- Database connection and migration setupnotes.go -- Functions for all note operationsgo.mod -- Module file with required dependenciesThe code should be complete Go with no placeholders or TODO comments.
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
skills
sqlite-go-best-practices
verifiers