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

Emir Beganović 81c17a7e25 Revert "Fix #2517 : Check for incomplete parentheses to prevent SQL injection." (#2674) před 4 roky
.github 21fb3ae1fe Simplify GitHub templates před 6 roky
dialects 0c98e7d712 Fixed import formatting to match goimports (#2568) před 4 roky
.gitignore b00248862a Enable codecov před 5 roky
License 1b4490fd47 Add MIT License file před 9 roky
README.md 206174c932 Change gorm.io links to https před 5 roky
association.go 50c61291de add comment (#2163) před 5 roky
association_test.go b2b568daa8 Add tag association_autoupdate, association_autocreate, association_save_reference support před 6 roky
callback.go d5cafb5db1 Fix CallbackProcessor.Get() for removed or replaced same name callback (#2548) před 4 roky
callback_create.go 712c465560 add an override on the DB instance instead of using the global NowFunc. (#2142) před 5 roky
callback_delete.go 13f19a5036 Uncapitalize error strings (#2533) před 4 roky
callback_query.go 712c465560 add an override on the DB instance instead of using the global NowFunc. (#2142) před 5 roky
callback_query_preload.go 2fb2c0d3b2 return empty slice for many2many if no asscociation was found před 5 roky
callback_row_query.go adc8e9b706 apply gorm:query_option in Count() před 5 roky
callback_save.go 123d4f50ef lock TagSettings structure when modified (#1796) před 5 roky
callback_system_test.go 8b127471f1 Pass logger into Callback{} so that logs are printed consistently před 5 roky
callback_update.go 13f19a5036 Uncapitalize error strings (#2533) před 4 roky
callbacks_test.go d5cafb5db1 Fix CallbackProcessor.Get() for removed or replaced same name callback (#2548) před 4 roky
create_test.go 712c465560 add an override on the DB instance instead of using the global NowFunc. (#2142) před 5 roky
customize_column_test.go 14e0507fd2 fix the table name of many2many před 5 roky
delete_test.go e4b130d2d7 Fix customize DeletedAt's column name před 7 roky
dialect.go 09a868b381 Handle syntax to specify an index prefix length před 5 roky
dialect_common.go 09a868b381 Handle syntax to specify an index prefix length před 5 roky
dialect_mysql.go 09a868b381 Handle syntax to specify an index prefix length před 5 roky
dialect_postgres.go 123d4f50ef lock TagSettings structure when modified (#1796) před 5 roky
dialect_sqlite3.go 123d4f50ef lock TagSettings structure when modified (#1796) před 5 roky
docker-compose.yml e0f9087c8d Setup test env před 6 roky
embedded_struct_test.go 67c4280c57 Fix support embedded pointer type struct, close #1450 před 6 roky
errors.go 447d578628 amended comments in error.go for clarity and grammar; for more polish when using IDEs (e.g. VSCODE) that show comments as help text (#2182) před 5 roky
errors_test.go c063624c91 Make gorm.Errors available for use outside gorm před 7 roky
field.go 472c70caa4 Check valuer interface before scan value (#2155) před 5 roky
field_test.go bc5d3f07a8 Removed the deps on uuid and appengine (#2354) před 5 roky
go.mod b954854116 bump mattn/go-sqlite3 to v1.11.0 (#2565) před 4 roky
go.sum b954854116 bump mattn/go-sqlite3 to v1.11.0 (#2565) před 4 roky
interface.go af01854d3e Add BeginTx for parity with sql.DB.BeginTx (#2227) před 5 roky
join_table_handler.go 49934ff3bf Call DefaultTableNameHandler for JoinTableHandler's table před 6 roky
join_table_test.go d395b35025 mysql only accept offset with limit together před 7 roky
logger.go 2a3ab99a08 fix insert timezero 0001-01-01 (#2635) před 4 roky
main.go beb591e642 Fix function name of comment před 5 roky
main_test.go 5acd5e20e6 Remove Debug mode from test code před 5 roky
migration_test.go 09a868b381 Handle syntax to specify an index prefix length před 5 roky
model.go d08894cd69 Rename test files před 8 roky
model_struct.go ac78f05986 Don't set primary key's HasDefaultValue to true (#2127) před 5 roky
multi_primary_keys_test.go 5730b92954 Fix tests with mssql před 7 roky
naming.go 6f58f8a52c added naming strategy option for db, table and column names (#2040) před 5 roky
naming_test.go 6f58f8a52c added naming strategy option for db, table and column names (#2040) před 5 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 b4927348ae gofmt před 5 roky
query_test.go 81c17a7e25 Revert "Fix #2517 : Check for incomplete parentheses to prevent SQL injection." (#2674) před 4 roky
scaner_test.go 5730b92954 Fix tests with mssql před 7 roky
scope.go 81c17a7e25 Revert "Fix #2517 : Check for incomplete parentheses to prevent SQL injection." (#2674) před 4 roky
scope_test.go 9692c599ad Fix drop table error with table options před 5 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 26fde9110f getValueFromFields doesn't panic on nil pointers (#2021) před 5 roky
wercker.yml 835ca6ca93 Update wercker.yml to include mysql 8 před 5 roky

README.md

GORM

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

go report card wercker status codecov Open Collective Backer Open Collective Sponsor MIT license GoDoc

Overview

  • Full-Featured ORM (almost)
  • Associations (Has One, Has Many, Belongs To, Many To Many, Polymorphism)
  • Hooks (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

Contributing

You can help to deliver a better GORM, check out things you can do

License

© Jinzhu, 2013~time.Now

Released under the MIT License