The fantastic ORM library for Golang, aims to be developer friendly
Go to file
Jinzhu 4201f7bdab Fix create unique index when creating table, close #3081 2020-06-23 22:14:41 +08:00
.github add macos and windows for sqlite unit test and use cache for go mod package download (#3079) 2020-06-23 16:00:04 +08:00
callbacks Select, Omit, Preload supports clause.Associations 2020-06-20 17:21:01 +08:00
clause Support merge batch data some having primary values 2020-06-20 16:52:15 +08:00
logger Fix package path 2020-06-02 09:25:55 +08:00
migrator Fix create unique index when creating table, close #3081 2020-06-23 22:14:41 +08:00
schema Create supports Array / ArrayPtr (#3076) 2020-06-23 14:38:36 +08:00
tests Fix create unique index when creating table, close #3081 2020-06-23 22:14:41 +08:00
utils Support merge batch data some having primary values 2020-06-20 16:52:15 +08:00
.gitignore Add clause, DB API, model definition 2020-01-29 19:22:44 +08:00
License Add MIT License file 2015-01-05 08:59:18 +08:00
README.md Switch to github actions 2020-06-22 23:14:17 +08:00
association.go Rename package name 2020-06-02 09:18:01 +08:00
callbacks.go Refactor Execute callbacks 2020-06-08 22:32:35 +08:00
chainable_api.go Fix statement modifier support 2020-06-14 12:18:46 +08:00
errors.go Add register plugin API 2020-06-23 09:38:51 +08:00
finisher_api.go Fix Count with Select 2020-06-23 08:51:01 +08:00
go.mod Refactor tests files 2020-06-02 10:50:38 +08:00
go.sum Add go.sum 2020-06-06 14:28:59 +08:00
gorm.go initialize plugins map 2020-06-23 10:36:45 +08:00
interfaces.go Add register plugin API 2020-06-23 09:38:51 +08:00
migrator.go Test migrate with comment and check created constraints 2020-06-21 13:59:43 +08:00
model.go Fix typo 2020-06-09 12:00:43 +08:00
prepare_stmt.go Allow close prepared statements, double check before prepare 2020-06-21 18:18:23 +08:00
scan.go Allow scan into float close #1373 2020-06-14 19:18:48 +08:00
soft_delete.go Rename package name 2020-06-02 09:18:01 +08:00
statement.go Test GroupConditions 2020-06-20 01:55:30 +08:00
statement_test.go Spelling fix for "condtion" -> "condition" (#3042) 2020-06-08 11:38:51 +08:00

README.md

GORM

The fantastic ORM library for Golang, aims to be developer friendly.

go report card test status Join the chat at https://gitter.im/jinzhu/gorm Open Collective Backer Open Collective Sponsor MIT license Go.Dev reference

Overview

  • Full-Featured ORM
  • Associations (Has One, Has Many, Belongs To, Many To Many, Polymorphism, Single-table inheritance)
  • Hooks (Before/After Create/Save/Update/Delete/Find)
  • Eager loading with Preload, Joins
  • Transactions, Nested Transactions, Save Point, RollbackTo to Saved Point
  • Context, Prepared Statment Mode, DryRun Mode
  • Batch Insert, FindInBatches, Find To Map
  • SQL Builder, Upsert, Locking, Optimizer/Index/Comment Hints
  • Composite Primary Key
  • Auto Migrations
  • Logger
  • Extendable, write Plugins based on GORM callbacks
  • Every feature comes with tests
  • Developer Friendly

Getting Started

Contributing

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

License

© Jinzhu, 2013~time.Now

Released under the MIT License