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

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