gorm/README.md
2023-03-02 15:16:44 +07:00

1.8 KiB

GORM

Easy-to-use ORM lib for Golang.

go report card test status MIT license Go.Dev reference

Highlights

  • Full-featured ORM
  • Relationship types (Has one, Has many, Belong to, many to many, polymorphism, single-table inheritance)
  • Hooks (Before/After, Create/Save/Update/Delete/Find)
  • Eager loading by Preload, Joins
  • Transaction, nested transactions, savepoint, RollbackTo
  • Context, prepared statement mode, DryRun mode
  • Batch insert, FindInBatches, Find to map
  • SQL builder, upsert, locking, optimizer/index/comment hints, NamedArg, Search/Update/Create with SQL expr
  • Composite primary key
  • Migration
  • Logger
  • Extendable, flexible plugin API: Database resolver (Multiple databases, read/write splitting) / Prometheus…

Getting started

Contribute

You can help to deliver a better GORM, check out things you can do

Thank you for contributing to the GORM framework!

Contributors

License

© Jinzhu and GORM's committer, 2013 - 2023

Released under the MIT License