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.
Data Access Layer (DAL) for PostgreSQL, CockroachDB, MySQL, SQLite and MongoDB with ORM-like features.
upper/db 的主要功能包括:Object Relational Mappers, Object Relational Mapping, ORM and Data Mapping。
upper/db 的开源替代品包括: 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… albrow/zoom. coocood/qbs. 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.