golang-database

golang database

samber ↓ 34k
Claude Code
View source ↗

What it does

  • Unpredictable query generation — N+1 problems you cannot see in code
  • Magic hooks and callbacks (BeforeCreate, AfterUpdate) make debugging harder
  • Schema migrations coupled to application code
  • Learning the ORM API is harder than learning SQL, and the abstraction leaks
  • golang-migrate — CLI + Go library, supports all major databases
  • Flyway — JVM-based, widely used in enterprise environments
  • Atlas — modern, declarative schema management

Requirements & configuration

  • Use an external migration tool. Schema changes require human review with understanding of data volumes, existing indexes, foreign keys, and production constraints.

Configuration: SELECT

Derived from the skill's own SKILL.md documentation · extracted 2026-07-23

golang database

Source

Repository: https://github.com/samber/cc-skills-golang

golang-database FAQ

What does the golang-database skill do?

Comprehensive guide for Go database access — parameterized queries, struct scanning, NULLable columns, transactions, isolation levels, SELECT FOR UPDATE, connection pool, batch processing, context propagation, and migration tooling. Use when writing, reviewing, or debugging Golang code that interacts with PostgreSQL, MariaDB, MySQL, or SQLite; for database testing; or for questions about database/sql, sqlx, or pgx. Does NOT generate database schemas or migration SQL. Unpredictable query generation — N+1 problems you cannot see in code Magic hooks and callbacks (BeforeCreate, AfterUpdate) make debugging harder

What does golang-database require?

Use an external migration tool. Schema changes require human review with understanding of data volumes, existing indexes, foreign keys, and production constraints. Configuration keys: SELECT.

How do I install golang-database?

Run: npx -y skills add https://github.com/samber/cc-skills-golang --skill golang-database --agent claude-code — the source lives at github.com/samber/cc-skills-golang.

Maintain golang-database?

Let people know it's listed here — add the badge (live metrics, light/dark aware) or a plain link to your README or docs.

golang-database on getagentictools
[![golang-database on getagentictools](https://getagentictools.com/badge/skills/samber-cc-skills-golang-golang-database.svg)](https://getagentictools.com/skills/samber-cc-skills-golang-golang-database?ref=badge)
npx agentictools info skills/samber-cc-skills-golang-golang-database

The second line is the CLI lookup for this page — handy in READMEs and docs.