The fantastic ORM library for Golang, aims to be developer friendly
Go to file
Viktor Nikolaiev fce49136e8 fixed golint issues 2018-02-11 09:19:57 +08:00
.github Simplify GitHub templates 2018-02-10 13:55:11 +08:00
dialects Use brackets for quoting (#1736) 2018-02-10 12:28:01 +08:00
.codeclimate.yml Add codeclimate 2015-08-22 08:46:46 +08:00
.gitignore Update README 2016-02-29 22:06:15 +08:00
License Add MIT License file 2015-01-05 08:59:18 +08:00
README.md Simplify GitHub templates 2018-02-10 13:55:11 +08:00
association.go Refactor self referencing m2m support 2018-02-10 21:21:50 +08:00
association_test.go Add tag association_autoupdate, association_autocreate, association_save_reference support 2018-02-10 17:34:02 +08:00
callback.go Use log.PrintX instead of fmt.PrintX (#1634) 2017-10-10 08:04:23 -05:00
callback_create.go Don't overwrite existing timestamp when creating 2017-07-31 17:26:36 +08:00
callback_delete.go Fix customize DeletedAt's column name 2017-02-01 21:33:36 +08:00
callback_query.go Refactor preloading many2many for auto preload 2018-02-10 00:07:16 +08:00
callback_query_preload.go Refactor preloading many2many for auto preload 2018-02-10 00:07:16 +08:00
callback_row_query.go Query Row, Rows inside RowQuery callbacks 2017-01-15 18:03:12 +08:00
callback_save.go Add DB setting gorm:association_save_reference 2018-02-10 18:01:41 +08:00
callback_system_test.go Rename test files 2016-03-08 22:00:15 +08:00
callback_update.go Sort column names before generating SQL in `DB.UpdateColumns` (#1734) 2018-02-10 14:26:01 +08:00
callbacks_test.go update tests 2014-08-28 16:14:44 +08:00
create_test.go Add QueryExpr, thanks @ManReinsp for PR #1548 2017-08-11 18:41:04 +08:00
customize_column_test.go Add more tests for self-referencing many2many relationship 2018-02-10 22:14:18 +08:00
delete_test.go Fix customize DeletedAt's column name 2017-02-01 21:33:36 +08:00
dialect.go Move ModifyColumn implemention to Dialect 2018-02-09 22:58:34 +08:00
dialect_common.go Convert auto_increment's value to lower case when checking its value 2018-02-10 19:25:58 +08:00
dialect_mysql.go Add new tag "not_auto_increment" to set a column can auto increase or not 2018-02-10 08:18:35 +08:00
dialect_postgres.go Add new tag "not_auto_increment" to set a column can auto increase or not 2018-02-10 08:18:35 +08:00
dialect_sqlite3.go Add new tag "not_auto_increment" to set a column can auto increase or not 2018-02-10 08:18:35 +08:00
docker-compose.yml Setup test env 2018-02-10 11:07:07 +08:00
embedded_struct_test.go Fix primary key for embedded struct 2017-01-09 20:07:39 +08:00
errors.go Erros skip nil in Add function (#1566) 2017-09-04 22:25:57 +08:00
errors_test.go Make gorm.Errors available for use outside gorm 2016-10-25 11:22:50 -05:00
field.go Print warning message when using unaddressable value with Update 2016-04-04 21:33:11 +08:00
field_test.go scope.Fields() return slice of *Field 2016-03-07 14:25:41 +08:00
interface.go Replace all use of *sql.DB with sqlCommon 2017-03-14 17:02:14 -04:00
join_table_handler.go Refactor self referencing m2m support 2018-02-10 21:21:50 +08:00
join_table_test.go mysql only accept offset with limit together 2017-07-03 11:26:31 +08:00
logger.go Print affected rows (#1541) 2017-07-23 16:04:22 +08:00
main.go Removed unnecessary cloning. (#1462) 2018-02-10 19:31:55 +08:00
main_test.go Setup test env 2018-02-10 11:07:07 +08:00
migration_test.go fixed golint issues 2018-02-11 09:19:57 +08:00
model.go Rename test files 2016-03-08 22:00:15 +08:00
model_struct.go Refactor self referencing m2m support 2018-02-10 21:21:50 +08:00
multi_primary_keys_test.go Fix tests with mssql 2017-03-22 23:50:42 +08:00
pointer_test.go Fix some go vet/lint reports 2016-01-15 21:16:48 +08:00
polymorphic_test.go Refactor named value support for PolymorphicType 2016-10-06 20:33:48 +08:00
preload_test.go Refactor preloading many2many for auto preload 2018-02-10 00:07:16 +08:00
query_test.go Fix Count in mssql for SQL with group 2018-02-11 09:16:10 +08:00
scaner_test.go Fix tests with mssql 2017-03-22 23:50:42 +08:00
scope.go Made it possible to implement driver.Valuer for byte slices 2018-02-11 09:19:57 +08:00
scope_test.go Made it possible to implement driver.Valuer for byte slices 2018-02-11 09:19:57 +08:00
search.go Do not ignore order on distinct query (#1570) 2017-09-04 22:35:37 +08:00
search_test.go Add SelectAttrs, OmitAttrs 2015-03-12 15:50:38 +08:00
test_all.sh Set AutoIncrement to false with tag 2018-02-10 08:24:39 +08:00
update_test.go Fixing 4 typos in comments and gofmt -s in all files 2017-02-10 16:16:38 -02:00
utils.go UID should come before UI in common abbreviations (#1678) 2018-01-31 17:08:03 +08:00
utils_test.go Fix ToDBName method 2017-03-30 11:48:50 +09:00
wercker.yml Update wercker.yml 2018-02-10 11:45:38 +08:00

README.md

GORM

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

Join the chat at https://gitter.im/jinzhu/gorm go report card wercker status GoDoc

Overview

  • Full-Featured ORM (almost)
  • Associations (Has One, Has Many, Belongs To, Many To Many, Polymorphism)
  • Callbacks (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

Upgrading To V1.0

Supporting the project

http://patreon.com/jinzhu

Author

jinzhu

Contributors

https://github.com/jinzhu/gorm/graphs/contributors

License

Released under the MIT License.