Skip to content
The fantastic ORM library for Golang, aims to be developer friendly
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Simplify GitHub templates Feb 10, 2018
dialects lock TagSettings structure when modified (#1796) Sep 9, 2018
.codeclimate.yml Add codeclimate Aug 22, 2015
.gitignore Update README Feb 29, 2016
License Add MIT License file Jan 5, 2015
README.md Update README Feb 16, 2018
association.go add comment (#2163) Nov 3, 2018
association_test.go Add tag association_autoupdate, association_autocreate, association_s… Feb 10, 2018
callback.go Use log.PrintX instead of fmt.PrintX (#1634) Oct 10, 2017
callback_create.go add mysql insert modifiers (#2269) Mar 10, 2019
callback_delete.go Fix customize DeletedAt's column name Feb 1, 2017
callback_query.go Fix tests Mar 10, 2019
callback_query_preload.go return empty slice for many2many if no asscociation was found Mar 13, 2019
callback_row_query.go Query Row, Rows inside RowQuery callbacks Jan 15, 2017
callback_save.go lock TagSettings structure when modified (#1796) Sep 9, 2018
callback_system_test.go Rename test files Mar 8, 2016
callback_update.go Do not set CreatedAt if blank during Save (#2207) Jan 2, 2019
callbacks_test.go update tests Aug 28, 2014
create_test.go add mysql insert modifiers (#2269) Mar 10, 2019
customize_column_test.go fix the table name of many2many Mar 14, 2019
delete_test.go Fix customize DeletedAt's column name Feb 1, 2017
dialect.go create table add column comment (#2298) Mar 10, 2019
dialect_common.go lock TagSettings structure when modified (#1796) Sep 9, 2018
dialect_mysql.go Don't set NULL if timestamp column is Primary Key (#2332) Apr 14, 2019
dialect_postgres.go lock TagSettings structure when modified (#1796) Sep 9, 2018
dialect_sqlite3.go lock TagSettings structure when modified (#1796) Sep 9, 2018
docker-compose.yml Setup test env Feb 10, 2018
embedded_struct_test.go Fix support embedded pointer type struct, close #1450 Feb 13, 2018
errors.go amended comments in error.go for clarity and grammar; for more polish… Jan 2, 2019
errors_test.go Make gorm.Errors available for use outside gorm Oct 25, 2016
field.go Check valuer interface before scan value (#2155) Nov 3, 2018
field_test.go Removed the deps on uuid and appengine (#2354) Apr 4, 2019
go.mod Cleanup go.mod Apr 14, 2019
go.sum Cleanup go.mod Apr 14, 2019
interface.go Replace all use of *sql.DB with sqlCommon Mar 14, 2017
join_table_handler.go Call DefaultTableNameHandler for JoinTableHandler's table Feb 12, 2018
join_table_test.go mysql only accept offset with limit together Jul 3, 2017
logger.go Better log output for uint* Feb 10, 2019
main.go Use RWMutex Apr 14, 2019
main_test.go Fix unsafe concurrent SingularTable method call Apr 14, 2019
migration_test.go save_associations:true should store related item (#2067) Sep 9, 2018
model.go Rename test files Mar 8, 2016
model_struct.go Use RWMutex Apr 14, 2019
multi_primary_keys_test.go Fix tests with mssql Mar 22, 2017
naming.go added naming strategy option for db, table and column names (#2040) Sep 9, 2018
naming_test.go added naming strategy option for db, table and column names (#2040) Sep 9, 2018
pointer_test.go Fix some go vet/lint reports Jan 15, 2016
polymorphic_test.go Refactor named value support for PolymorphicType Oct 6, 2016
preload_test.go gofmt Apr 14, 2019
query_test.go Fix typo in query_test (#1977) Jul 26, 2018
scaner_test.go Fix tests with mssql Mar 22, 2017
scope.go fix the case that using Having on Count Mar 11, 2019
scope_test.go Refactor fix valuer Feb 11, 2018
search.go Do not ignore order on distinct query (#1570) Sep 4, 2017
search_test.go Add SelectAttrs, OmitAttrs Mar 12, 2015
test_all.sh Set AutoIncrement to false with tag Feb 10, 2018
update_test.go Fixing 4 typos in comments and gofmt -s in all files Feb 10, 2017
utils.go getValueFromFields doesn't panic on nil pointers (#2021) Sep 9, 2018
wercker.yml Run tests with race detector Apr 14, 2019

README.md

GORM

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

go report card wercker status Join the chat at https://gitter.im/jinzhu/gorm Open Collective Backer Open Collective Sponsor MIT license GoDoc

Overview

  • Full-Featured ORM (almost)
  • Associations (Has One, Has Many, Belongs To, Many To Many, Polymorphism)
  • Hooks (Before/After Create/Save/Update/Delete/Find)
  • Preloading (eager loading)
  • Transactions
  • Composite Primary Key
  • SQL Builder
  • 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

You can’t perform that action at this time.