cloned from https://github.com/jinzhu/gorm

Giuseppe 706b8f55da Use brackets for quoting (#1736) 6 жил өмнө
.github 3f98904fe7 Update PULL_REQUEST_TEMPLATE.md, A vs. An (#1757) 6 жил өмнө
dialects 706b8f55da Use brackets for quoting (#1736) 6 жил өмнө
.codeclimate.yml 9303e070c8 Add codeclimate 8 жил өмнө
.gitignore cd766809c6 Update README 8 жил өмнө
License 1b4490fd47 Add MIT License file 9 жил өмнө
README.md ca46ec0770 Smaller image 6 жил өмнө
association.go eae7f6be60 Fix source type is incorrect error for embedded many to many relationship 7 жил өмнө
association_test.go 4a540f3ac8 Add tag to support skip nested save for associations 7 жил өмнө
callback.go 9c9de89686 Use log.PrintX instead of fmt.PrintX (#1634) 6 жил өмнө
callback_create.go 35fb16eeba Don't overwrite existing timestamp when creating 6 жил өмнө
callback_delete.go e4b130d2d7 Fix customize DeletedAt's column name 7 жил өмнө
callback_query.go 77eb925ea0 Refactor preloading many2many for auto preload 6 жил өмнө
callback_query_preload.go 77eb925ea0 Refactor preloading many2many for auto preload 6 жил өмнө
callback_row_query.go c62e9bcabe Query Row, Rows inside RowQuery callbacks 7 жил өмнө
callback_save.go 4a540f3ac8 Add tag to support skip nested save for associations 7 жил өмнө
callback_system_test.go d08894cd69 Rename test files 8 жил өмнө
callback_update.go e26cb8dbc4 In some cases (Error not checked, missed data) one can perform very harmful operation - global update or delete (all records) 7 жил өмнө
callbacks_test.go 423d9496c1 update tests 9 жил өмнө
create_test.go e5432b14d2 Add QueryExpr, thanks @ManReinsp for PR #1548 6 жил өмнө
customize_column_test.go 5d853fc53c Fix null time not allowed in mysql5.7 test error 7 жил өмнө
delete_test.go e4b130d2d7 Fix customize DeletedAt's column name 7 жил өмнө
dialect.go 89a726ce5d Move ModifyColumn implemention to Dialect 6 жил өмнө
dialect_common.go 2c68f695c3 Set AutoIncrement to false with tag 6 жил өмнө
dialect_mysql.go 97495a5e40 Add new tag "not_auto_increment" to set a column can auto increase or not 6 жил өмнө
dialect_postgres.go 97495a5e40 Add new tag "not_auto_increment" to set a column can auto increase or not 6 жил өмнө
dialect_sqlite3.go 97495a5e40 Add new tag "not_auto_increment" to set a column can auto increase or not 6 жил өмнө
docker-compose.yml e0f9087c8d Setup test env 6 жил өмнө
embedded_struct_test.go 1aa2d4ca89 Fix primary key for embedded struct 7 жил өмнө
errors.go 6e456250f7 Erros skip nil in Add function (#1566) 6 жил өмнө
errors_test.go c063624c91 Make gorm.Errors available for use outside gorm 7 жил өмнө
field.go 9fd05d1bad Print warning message when using unaddressable value with Update 8 жил өмнө
field_test.go 3055bad1e8 scope.Fields() return slice of *Field 8 жил өмнө
interface.go 45f1a95051 Replace all use of *sql.DB with sqlCommon 7 жил өмнө
join_table_handler.go eae7f6be60 Fix source type is incorrect error for embedded many to many relationship 7 жил өмнө
join_table_test.go d395b35025 mysql only accept offset with limit together 7 жил өмнө
logger.go 10e217e2bc Print affected rows (#1541) 6 жил өмнө
main.go 0e1cb6ece9 Add support to remove foreign key constraints (#1686) 6 жил өмнө
main_test.go e0f9087c8d Setup test env 6 жил өмнө
migration_test.go 89a726ce5d Move ModifyColumn implemention to Dialect 6 жил өмнө
model.go d08894cd69 Rename test files 8 жил өмнө
model_struct.go d61b7db8fa Fix postgres tests 6 жил өмнө
multi_primary_keys_test.go 5730b92954 Fix tests with mssql 7 жил өмнө
pointer_test.go 8d716be896 Fix some go vet/lint reports 8 жил өмнө
polymorphic_test.go afaadc3942 Refactor named value support for PolymorphicType 7 жил өмнө
preload_test.go 77eb925ea0 Refactor preloading many2many for auto preload 6 жил өмнө
query_test.go 08dba5378e Fix typo in tests 7 жил өмнө
scaner_test.go 5730b92954 Fix tests with mssql 7 жил өмнө
scope.go 89a726ce5d Move ModifyColumn implemention to Dialect 6 жил өмнө
scope_test.go c108cf022b Add support for signed and unsigned integer types as primary key type 9 жил өмнө
search.go c0ac6a7d50 Do not ignore order on distinct query (#1570) 6 жил өмнө
search_test.go da7830ea50 Add SelectAttrs, OmitAttrs 9 жил өмнө
test_all.sh 2c68f695c3 Set AutoIncrement to false with tag 6 жил өмнө
update_test.go 2cd7acefc3 Fixing 4 typos in comments and gofmt -s in all files 7 жил өмнө
utils.go a2c7c4b63f UID should come before UI in common abbreviations (#1678) 6 жил өмнө
utils_test.go 0493e786b8 Fix ToDBName method 7 жил өмнө
wercker.yml 2e5d98a420 Update wercker.yml 6 жил өмнө

README.md

GORM

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

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

Author

jinzhu

Contributors

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

License

Released under the MIT License.