The fantastic ORM library for Golang, aims to be developer friendly
Go to file
Jinzhu b8a74a80d7 Fix embedded struct with default value, close #3451 2020-09-11 11:18:54 +08:00
.github Update missing playground template 2020-09-03 11:48:44 +08:00
callbacks Support delete associations with Select when deleting 2020-09-10 21:46:18 +08:00
clause Fix tests & refactor for PR #3429 2020-09-09 10:31:48 +08:00
logger Should not diplay SubQuery SQL log, close #3437 2020-09-09 16:26:16 +08:00
migrator ignore (-) when creating default values, #3434 2020-09-10 10:55:02 +08:00
schema Fix embedded struct with default value, close #3451 2020-09-11 11:18:54 +08:00
tests Fix embedded struct with default value, close #3451 2020-09-11 11:18:54 +08:00
utils Support delete associations with Select when deleting 2020-09-10 21:46:18 +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 Add GormValuer interface support 2020-08-27 15:03:57 +08:00
association.go Fix V2 Save compatibility, close #3332 2020-08-30 10:21:11 +08:00
callbacks.go Use db's Logger for callbacks logs, close #3448, #3447 2020-09-10 19:20:47 +08:00
chainable_api.go fix order case (#3350) 2020-09-01 15:50:53 +08:00
errors.go returns ErrEmptySlice when creating with zero length slice 2020-09-03 11:32:30 +08:00
finisher_api.go Fix Save with specified table, close #3396 2020-09-06 12:22:08 +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 Set field size from primary fields to foreign fields 2020-09-03 16:11:15 +08:00
interfaces.go Add GormValuer interface support 2020-08-27 15:03:57 +08:00
migrator.go Fix Scan struct with primary key, close #3357 2020-09-02 16:14:26 +08:00
model.go Fix typo 2020-06-09 12:00:43 +08:00
prepare_stmt.go Fix transaction on closed conn when using prepared statement, close #3380 2020-09-03 19:16:55 +08:00
scan.go Better support for scan into map, fix unfriendly data type for interface, close #3351 2020-09-01 17:45:14 +08:00
soft_delete.go Fix duplicated soft delete clause 2020-09-01 18:05:26 +08:00
statement.go Should not diplay SubQuery SQL log, close #3437 2020-09-09 16:26:16 +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, 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