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

Jinzhu 21fb3ae1fe Simplify GitHub templates 6 лет назад
.github 21fb3ae1fe Simplify GitHub templates 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 21fb3ae1fe Simplify GitHub templates 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 6 лет назад
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.