gorp
Go library that maps structs to database tables and provides insert, update, delete and select helpers over database/sql.
gorp is a Go library that binds struct fields to table columns, by tag or by API, and generates the insert, update, delete and get statements for them. It runs on database/sql, so a program supplies its own driver, and each database has a dialect that produces the statements in that database’s syntax. Raw SQL can be bound to structs and slices, with positional or named parameters, and registered structs can create their tables for unit tests.
Worth knowing
The README says its author hesitates to call gorp an ORM, because gorp does not know the relationships between structs. It also says development is not very active right now, and that Oracle and SQL Server support is not covered by CI.
Sources
- 2026-11-09: links, Written in, Categories, License, GitHub stars
api.github.com/repos/go-gorp/gorp - 2026-11-09: links, Runtime, Install with, Databases
github.com/go-gorp/gorp/blob/main/README.md - 2026-11-09: Maintainer
github.com/go-gorp/gorp/blob/main/LICENSE - 2026-11-09: First release
api.github.com/repos/go-gorp/gorp/tags - 2026-11-09: Current major version, Last release
api.github.com/repos/go-gorp/gorp/releases - 2026-11-09: Contributors
api.github.com/repos/go-gorp/gorp/contributors?per_page=1