Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Guides Go CLI developers on designing, implementing, migrating, and testing SQL persistence with database/sql and transactions.
Use this skill ↓88% 88%0 ptsof test cases passed
Passed 22 of 25 test cases with the skill, and 22 of 25 without it.
3 of 3 safety checks passed
Not used yet
Treat *sql.DB as a long-lived pool owned by the composition root. Keep SQL,
driver behavior, migrations, and sensitive connection details inside adapters.
PingContext.| Task | Load |
|---|---|
| Design storage for a CLI | guidelines.md, workflows/build-sql-storage.md |
| Add or change migrations | workflows/apply-schema-migrations.md |
| Test an adapter | workflows/test-sql-adapter.md |
| Review pools, transactions, queries, or conversions | references/sql-storage/rules.md |
| Understand driver and pool contracts | references/sql-storage/knowledge.md |
| Build a multi-process SQLite cache | references/sql-storage/sqlite.md |
| Review patterns | references/sql-storage/examples.md |
sql.Open as a connectivity check.Guidance is transformed and paraphrased from Inanc Gumus, *Go by Example:
Next to this one in the catalogue, plus more from the same author.