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 пре 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.