THIS IS A TEST INSTANCE ONLY! REPOSITORIES CAN BE DELETED AT ANY TIME!

You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Toshaan Bharvani 481a67aaa8 add make file 1 year ago
.github Simplify GitHub templates 1 year ago
dialects Fix insert with default value for mysql 1 year ago
.codeclimate.yml Add codeclimate 4 years ago
.gitignore Update README 3 years ago
License Add MIT License file 4 years ago
Makefile add make file 1 year ago
README.md Update README 1 year ago
association.go Refactor self referencing m2m support 1 year ago
association_test.go Add tag association_autoupdate, association_autocreate, association_save_reference support 1 year ago
callback.go Use log.PrintX instead of fmt.PrintX (#1634) 1 year ago
callback_create.go Fix insert with default value for mysql 1 year ago
callback_delete.go Fix customize DeletedAt's column name 2 years ago
callback_query.go Refactor preloading many2many for auto preload 1 year ago
callback_query_preload.go Refactor preloading many2many for auto preload 1 year ago
callback_row_query.go Query Row, Rows inside RowQuery callbacks 2 years ago
callback_save.go Add DB setting gorm:association_save_reference 1 year ago
callback_system_test.go Rename test files 3 years ago
callback_update.go Sort column names before generating SQL in `DB.UpdateColumns` (#1734) 1 year ago
callbacks_test.go update tests 5 years ago
create_test.go Fix insert with default value for mysql 1 year ago
customize_column_test.go Add more tests for self-referencing many2many relationship 1 year ago
delete_test.go Fix customize DeletedAt's column name 2 years ago
dialect.go Don't access scanner's fields if already defined data type 1 year ago
dialect_common.go Fix insert with default value for mysql 1 year ago
dialect_mysql.go Fix insert with default value for mysql 1 year ago
dialect_postgres.go Add new tag "not_auto_increment" to set a column can auto increase or not 1 year ago
dialect_sqlite3.go Add new tag "not_auto_increment" to set a column can auto increase or not 1 year ago
docker-compose.yml Setup test env 1 year ago
embedded_struct_test.go Fix support embedded pointer type struct, close #1450 1 year ago
errors.go Add IsRecordNotFoundError method 1 year ago
errors_test.go Make gorm.Errors available for use outside gorm 2 years ago
field.go Print warning message when using unaddressable value with Update 3 years ago
field_test.go scope.Fields() return slice of *Field 3 years ago
interface.go Replace all use of *sql.DB with sqlCommon 2 years ago
join_table_handler.go Call DefaultTableNameHandler for JoinTableHandler's table 1 year ago
join_table_test.go mysql only accept offset with limit together 2 years ago
logger.go Print affected rows (#1541) 2 years ago
main.go Do not panic if Begin().Error was ignored (#1830) 1 year ago
main_test.go Port PR #1655 to Not query builder 1 year ago
migration_test.go Refactor build SQL condition 1 year ago
model.go Rename test files 3 years ago
model_struct.go Refactor self referencing m2m support 1 year ago
multi_primary_keys_test.go Fix tests with mssql 2 years ago
pointer_test.go Fix some go vet/lint reports 3 years ago
polymorphic_test.go Refactor named value support for PolymorphicType 3 years ago
preload_test.go Refactor preloading many2many for auto preload 1 year ago
query_test.go Add 2D array support, close #1201 1 year ago
scaner_test.go Fix tests with mssql 2 years ago
scope.go fix scope.removeForeignKey method (#1841) 1 year ago
scope_test.go Refactor fix valuer 1 year ago
search.go Do not ignore order on distinct query (#1570) 2 years ago
search_test.go Add SelectAttrs, OmitAttrs 4 years ago
test_all.sh Set AutoIncrement to false with tag 1 year ago
update_test.go Fixing 4 typos in comments and gofmt -s in all files 2 years ago
utils.go UID should come before UI in common abbreviations (#1678) 1 year ago
utils_test.go Fix ToDBName method 2 years ago
wercker.yml Remove mysql8 from CI 1 year ago

README.md

GORM

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

go report card wercker status 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