The fantastic ORM library for Golang, aims to be developer friendly
Go to file
Jinzhu 3f20a543fa Support use clause.Interface as query params 2022-10-18 18:01:55 +08:00
.github chore(deps): bump actions/stale from 5 to 6 (#5717) 2022-09-30 11:13:01 +08:00
callbacks fix: association without pks (#5779) 2022-10-18 11:58:42 +08:00
clause fix: limit=0 results (#5735) (#5736) 2022-10-07 20:14:14 +08:00
logger Replace `ioutil.Discard` with `io.Discard` (#5603) 2022-08-15 10:50:06 +08:00
migrator add test: TestAutoMigrateInt8PG: shouldn't execute ALTER COLUMN TYPE smallint, close #5762 2022-10-18 17:28:06 +08:00
schema Save as empty string for not nullable nil field serialized into json 2022-10-18 16:25:39 +08:00
tests Support use clause.Interface as query params 2022-10-18 18:01:55 +08:00
utils Don't display any GORM related package path as source 2022-10-17 17:01:42 +08:00
.gitignore Adjust ToStringKey use unpack params, fix pass []any as any in variadic function (#5500) 2022-07-14 20:05:22 +08:00
.golangci.yml Use Golangci configuration file (#4896) 2021-12-10 17:44:11 +08:00
License Add MIT License file 2015-01-05 08:59:18 +08:00
README.md Update README 2022-10-14 20:30:41 +08:00
association.go fix empty QueryClauses in association (#5502) (#5503) 2022-07-15 11:15:18 +08:00
callbacks.go Revert "use callback to handle transaction" 2022-07-07 15:06:48 +08:00
chainable_api.go fix: limit=0 results (#5735) (#5736) 2022-10-07 20:14:14 +08:00
errors.go preoload not allowd before count (#5023) 2022-01-30 18:17:06 +08:00
finisher_api.go fix: limit=0 results (#5735) (#5736) 2022-10-07 20:14:14 +08:00
go.mod Replace `ioutil.Discard` with `io.Discard` (#5603) 2022-08-15 10:50:06 +08:00
go.sum Upgrade go.mod 2021-12-10 17:50:19 +08:00
gorm.go fix: prepare deadlock (#5568) 2022-09-30 18:13:36 +08:00
interfaces.go Scan with Rows interface 2022-03-29 18:14:37 +08:00
migrator.go feat: migrator support type aliases (#5627) 2022-09-22 15:56:32 +08:00
model.go Fix typo 2020-06-09 12:00:43 +08:00
prepare_stmt.go fix: prepare deadlock (#5568) 2022-09-30 18:13:36 +08:00
scan.go tests mariadb with returning support 2022-10-08 20:48:22 +08:00
soft_delete.go Refactor check missing where condition 2022-02-25 10:48:23 +08:00
statement.go Support use clause.Interface as query params 2022-10-18 18:01:55 +08:00
statement_test.go Refactor: redundant type from composite literal (#5604) 2022-08-15 10:47:26 +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 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
  • Auto Migrations
  • Logger
  • Extendable, flexible plugin API: Database Resolver (Multiple Databases, Read/Write Splitting) / Prometheus…
  • 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