Gorp is a lightweight object-relational mapper for Go that binds structs to relational database tables. It functions as a relational data mapper and SQL dialect abstraction layer, automating the translation between application data and relational rows. The project provides a translation layer that generates vendor-specific SQL for PostgreSQL, MySQL, SQLite, Oracle, and SQL Server. It distinguishes itself by implementing optimistic locking via version columns to prevent concurrent update conflicts and providing a database schema generator to create tables and indexes from object definitions.
pg is a PostgreSQL object-relational mapper (ORM) for Go that maps Go structs to database tables and provides a fluent query builder for constructing SQL statements programmatically. At its core, it automatically generates CREATE TABLE statements from Go struct definitions using struct tags and naming conventions, and builds queries through method chaining with placeholder-based parameter binding to prevent SQL injection. The library distinguishes itself through relation-aware join generation that automatically constructs JOIN clauses for has-one, has-many, many-to-many, and polymorphic assoc
The main features of coocood/qbs are: Object Relational Mappers, Object Relational Mapping, ORM and Data Mapping.
Open-source alternatives to coocood/qbs include: go-gorp/gorp — Gorp is a lightweight object-relational mapper for Go that binds structs to relational database tables. It functions… go-reform/reform — A better ORM for Go, based on non-empty interfaces and code generation. albrow/zoom. fs02/grimoire. go-pg/pg — pg is a PostgreSQL object-relational mapper (ORM) for Go that maps Go structs to database tables and provides a fluent… gobuffalo/pop — A Tasty Treat For All Your Database Needs.