go-bun
Installation
SKILL.md
Bun ORM for Go
Bun (github.com/uptrace/bun) is a SQL-first ORM for PostgreSQL, MySQL, MSSQL, and SQLite. It
wraps database/sql, so a *bun.DB exposes the full query builder plus standard *sql.DB
behaviour. Write SQL-shaped Go; Bun does not hide the SQL.
Validated against Bun v1.2.18 (2026-02-28); requires Go 1.24+.
When to use
Use when defining models, building queries, wiring relations, running migrations, seeding fixtures, adding hooks/observability, managing transactions, or enabling soft deletes in a Go project that uses Bun.