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

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

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.