FindSoftware

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.

Identity

Status
Stub
Maintainer
James Cooper3
First release
20134

Rendering and deploy

Install with
go get2

Releases

Current major version
35
Last release
2019-11-275

Adoption

GitHub stars
3,7421
Contributors
716

Why these figures do not compare

Sources

  1. 2026-11-09: links, Written in, Categories, License, GitHub stars
    api.github.com/repos/go-gorp/gorp
  2. 2026-11-09: links, Runtime, Install with, Databases
    github.com/go-gorp/gorp/blob/main/README.md
  3. 2026-11-09: Maintainer
    github.com/go-gorp/gorp/blob/main/LICENSE
  4. 2026-11-09: First release
    api.github.com/repos/go-gorp/gorp/tags
  5. 2026-11-09: Current major version, Last release
    api.github.com/repos/go-gorp/gorp/releases
  6. 2026-11-09: Contributors
    api.github.com/repos/go-gorp/gorp/contributors?per_page=1

Last reviewed · Listed since Edit on GitHubThis page as markdownas JSON