Bun: SQL-first Golang ORM

Lightweight, SQL-first Golang ORM for PostgreSQL, MySQL, MSSQL, SQLite, and Oracle
Bun is a modern ORM that embraces SQL rather than hiding it. Write complex queries in Go with type
safety, powerful scanning capabilities, and database-agnostic code that works across multiple SQL
databases.
✨ Key Features
- SQL-first approach - Write elegant, readable queries that feel like SQL
- Multi-database support - PostgreSQL, MySQL/MariaDB, MSSQL, SQLite, and Oracle
- Type-safe operations - Leverage Go's static typing for compile-time safety
- Flexible scanning - Query results into structs, maps, scalars, or slices
- Performance optimized - Built on
database/sql with minimal overhead
- Rich relationships - Define complex table relationships with struct tags
- Production ready - Migrations, fixtures, soft deletes, and OpenTelemetry support
🚀 Quick Start
go get github.com/uptrace/bun