The fantastic ORM library for Golang, aims to be developer friendly
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.github Simplify GitHub templates Feb 10, 2018
dialects Adding json type for mssql dialect, similar to postgres.Jsonb (#1934) Jul 26, 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 Refactor self referencing m2m support Feb 10, 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 Fix insert with default value for mysql Feb 12, 2018
callback_delete.go Fix customize DeletedAt's column name Feb 1, 2017
callback_query.go Refactor preloading many2many for auto preload Feb 9, 2018
callback_query_preload.go Setting gorm:auto_preload to false now prevents preloading (#2031) Aug 18, 2018
callback_row_query.go Query Row, Rows inside RowQuery callbacks Jan 15, 2017
callback_save.go Add DB setting gorm:association_save_reference Feb 10, 2018
callback_system_test.go Rename test files Mar 8, 2016
callback_update.go Sort column names before generating SQL in `DB.UpdateColumns` (#1734) Feb 10, 2018
callbacks_test.go update tests Aug 28, 2014
create_test.go Fix insert with default value for mysql Feb 12, 2018
customize_column_test.go Add more tests for self-referencing many2many relationship Feb 10, 2018
delete_test.go Fix customize DeletedAt's column name Feb 1, 2017
dialect.go Adding GetDialect function (#1869) May 2, 2018
dialect_common.go Fix insert with default value for mysql Feb 12, 2018
dialect_mysql.go Fix insert with default value for mysql Feb 12, 2018
dialect_postgres.go Add new tag "not_auto_increment" to set a column can auto increase or… Feb 10, 2018
dialect_sqlite3.go Add new tag "not_auto_increment" to set a column can auto increase or… Feb 10, 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 doc: document ErrRecordNotFound error more clear (#2015) Aug 18, 2018
errors_test.go Make gorm.Errors available for use outside gorm Oct 25, 2016
field.go Print warning message when using unaddressable value with Update Apr 4, 2016
field_test.go scope.Fields() return slice of *Field Mar 7, 2016
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 Print affected rows (#1541) Jul 23, 2017
main.go Race fix. Changes modelStructsMap implementation from map with mutex … Aug 18, 2018
main_test.go add simple input validation on gorm.Open function (#1855) May 2, 2018
migration_test.go Edit DB.clone(), DB.Dialect(), and Scope.Dialect() preserve transacti… Jul 26, 2018
model.go Rename test files Mar 8, 2016
model_struct.go Race fix. Changes modelStructsMap implementation from map with mutex … Aug 18, 2018
multi_primary_keys_test.go Fix tests with mssql Mar 22, 2017
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 Setting gorm:auto_preload to false now prevents preloading (#2031) Aug 18, 2018
query_test.go Fix typo in query_test (#1977) Jul 26, 2018
scaner_test.go Fix tests with mssql Mar 22, 2017
scope.go Change buildCondition TableName to struct's TableName when query is i… Aug 18, 2018
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 Fix ToDBName (#1941) Jun 25, 2018
utils_test.go Fix ToDBName (#1941) Jun 25, 2018
wercker.yml Remove mysql8 from CI Feb 27, 2018

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