The fantastic ORM library for Golang, aims to be developer friendly
Go to file
Jinzhu e5432b14d2 Add QueryExpr, thanks @ManReinsp for PR #1548 2017-08-11 18:41:04 +08:00
.github Update issue, pull request template 2017-04-18 15:50:22 +08:00
dialects [mssql] Fix save time struct's timezone 2017-08-11 17:18:49 +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 Add how to support this project to README 2017-01-02 20:56:38 +08:00
association.go Fix source type is incorrect error for embedded many to many relationship 2017-06-14 17:33:21 +08:00
association_test.go Add tag to support skip nested save for associations 2016-10-27 10:31:46 +08:00
callback.go Apply Before('gorm:row_query') for row query callbacks w/o specify order for compatibility 2017-01-16 09:48:06 +08: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 DB errors over NotFound 2017-04-16 21:15:51 +02:00
callback_query_preload.go Update callback_query_preload.go (#1553) 2017-08-02 07:05:11 +08:00
callback_row_query.go Query Row, Rows inside RowQuery callbacks 2017-01-15 18:03:12 +08:00
callback_save.go Add tag to support skip nested save for associations 2016-10-27 10:31:46 +08:00
callback_system_test.go Rename test files 2016-03-08 22:00:15 +08:00
callback_update.go In some cases (Error not checked, missed data) one can perform very harmful operation - global update or delete (all records) 2016-11-04 17:54:43 +01: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 Fix null time not allowed in mysql5.7 test error 2016-10-19 12:20:45 +08:00
delete_test.go Fix customize DeletedAt's column name 2017-02-01 21:33:36 +08:00
dialect.go Replace all use of *sql.DB with sqlCommon 2017-03-14 17:02:14 -04:00
dialect_common.go Merge pull request #1420 from ModelRocket/master 2017-04-19 15:35:50 +08:00
dialect_mysql.go mysql only accept offset with limit together 2017-07-03 11:58:01 +08:00
dialect_postgres.go Changed the type of uint32 from integer to bigint in postgres (#1536) 2017-07-23 16:05:43 +08:00
dialect_sqlite3.go Adding better binary type support for common SQL dialects 2017-04-19 00:21:56 -07:00
embedded_struct_test.go Fix primary key for embedded struct 2017-01-09 20:07:39 +08:00
errors.go Make gorm.Errors available for use outside gorm 2016-10-25 11:22:50 -05: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 Fix source type is incorrect error for embedded many to many relationship 2017-06-14 17:33:21 +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 Add QueryExpr, thanks @ManReinsp for PR #1548 2017-08-11 18:41:04 +08:00
main_test.go Add QueryExpr, thanks @ManReinsp for PR #1548 2017-08-11 18:41:04 +08:00
migration_test.go Fix tests with mssql 2017-03-22 23:50:42 +08:00
model.go Rename test files 2016-03-08 22:00:15 +08:00
model_struct.go Fix postgres tests 2017-08-11 18:03:32 +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 adding gorm:auto_preload option and related tests 2017-04-27 15:53:39 -07:00
query_test.go Fix typo in tests 2017-04-19 10:17:29 +08:00
scaner_test.go Fix tests with mssql 2017-03-22 23:50:42 +08:00
scope.go Add QueryExpr, thanks @ManReinsp for PR #1548 2017-08-11 18:41:04 +08:00
scope_test.go Add support for signed and unsigned integer types as primary key type 2014-10-22 17:33:13 +02:00
search.go Add QueryExpr, thanks @ManReinsp for PR #1548 2017-08-11 18:41:04 +08:00
search_test.go Add SelectAttrs, OmitAttrs 2015-03-12 15:50:38 +08:00
test_all.sh Change bind var to 24652$ to avoid possible confliction 2017-04-18 16:13:02 +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 Fix ToDBName method 2017-03-30 11:48:50 +09:00
utils_test.go Fix ToDBName method 2017-03-30 11:48:50 +09:00
wercker.yml Add wercker.yml with postgres and mysql tests 2016-05-22 01:59:25 +02:00

README.md

GORM

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

Join the chat at https://gitter.im/jinzhu/gorm 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.