Code Generation Tool
7.0k 2026-04-25
aarondl/sqlboiler
A database-first Go ORM generator that creates type-safe models and boilerplate-free code from your existing database schema.
Core Features
Generates a Go ORM tailored to your database schema.
Database-first approach, working with existing databases.
Provides ActiveRecord-like productivity by eliminating SQL boilerplate and handling relationships.
Produces type-safe models with types closely correlating to database columns.
Offers Go-like performance, comparable to hand-rolled `sql.DB` code.
Detailed Introduction
SQLBoiler is a "database-first" Go ORM generator designed to enhance developer productivity by creating type-safe, high-performance models directly from an existing database schema. Unlike "code-first" ORMs, it integrates seamlessly with pre-defined database structures, aiming to eliminate the repetitive boilerplate associated with Go's standard `database/sql` package. It offers ActiveRecord-like development velocity, robust relationship handling, and debuggable code paths, ensuring a Go-idiomatic feel while delivering performance comparable to manual SQL interactions.