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

jaden 79a77d771d go.mod: remove unnecessary dependences through upgrade go-mssqldb (#2795) il y a 4 ans
.github 21fb3ae1fe Simplify GitHub templates il y a 6 ans
dialects 79a77d771d go.mod: remove unnecessary dependences through upgrade go-mssqldb (#2795) il y a 4 ans
.gitignore b00248862a Enable codecov il y a 5 ans
License 1b4490fd47 Add MIT License file il y a 9 ans
README.md 206174c932 Change gorm.io links to https il y a 5 ans
association.go 50c61291de add comment (#2163) il y a 5 ans
association_test.go b2b568daa8 Add tag association_autoupdate, association_autocreate, association_save_reference support il y a 6 ans
callback.go e8c07b5531 Set nopLogger to DefaultCallback for avoid nil pointer dereference (#2742) il y a 4 ans
callback_create.go 79a77d771d go.mod: remove unnecessary dependences through upgrade go-mssqldb (#2795) il y a 4 ans
callback_delete.go 13f19a5036 Uncapitalize error strings (#2533) il y a 4 ans
callback_query.go 9d2b65f8c9 add query hint support (#2351) il y a 4 ans
callback_query_preload.go 2fb2c0d3b2 return empty slice for many2many if no asscociation was found il y a 5 ans
callback_row_query.go 9d2b65f8c9 add query hint support (#2351) il y a 4 ans
callback_save.go 123d4f50ef lock TagSettings structure when modified (#1796) il y a 5 ans
callback_system_test.go 8b127471f1 Pass logger into Callback{} so that logs are printed consistently il y a 5 ans
callback_update.go 13f19a5036 Uncapitalize error strings (#2533) il y a 4 ans
callbacks_test.go e8c07b5531 Set nopLogger to DefaultCallback for avoid nil pointer dereference (#2742) il y a 4 ans
create_test.go 712c465560 add an override on the DB instance instead of using the global NowFunc. (#2142) il y a 5 ans
customize_column_test.go 14e0507fd2 fix the table name of many2many il y a 5 ans
delete_test.go e4b130d2d7 Fix customize DeletedAt's column name il y a 7 ans
dialect.go 23f6840776 Add limit and offset parse error il y a 4 ans
dialect_common.go 11e2819f44 Extract parseInt il y a 4 ans
dialect_mysql.go 23f6840776 Add limit and offset parse error il y a 4 ans
dialect_postgres.go 820b5f244a MSSQL Create() fix: Add LastInsertIDReturningSuffix to dialect (#2690) il y a 4 ans
dialect_sqlite3.go 123d4f50ef lock TagSettings structure when modified (#1796) il y a 5 ans
docker-compose.yml e0f9087c8d Setup test env il y a 6 ans
embedded_struct_test.go 67c4280c57 Fix support embedded pointer type struct, close #1450 il y a 6 ans
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) il y a 5 ans
errors_test.go c063624c91 Make gorm.Errors available for use outside gorm il y a 7 ans
field.go 472c70caa4 Check valuer interface before scan value (#2155) il y a 5 ans
field_test.go bc5d3f07a8 Removed the deps on uuid and appengine (#2354) il y a 5 ans
go.mod 79a77d771d go.mod: remove unnecessary dependences through upgrade go-mssqldb (#2795) il y a 4 ans
go.sum 79a77d771d go.mod: remove unnecessary dependences through upgrade go-mssqldb (#2795) il y a 4 ans
interface.go af01854d3e Add BeginTx for parity with sql.DB.BeginTx (#2227) il y a 5 ans
join_table_handler.go 49934ff3bf Call DefaultTableNameHandler for JoinTableHandler's table il y a 6 ans
join_table_test.go d395b35025 mysql only accept offset with limit together il y a 7 ans
logger.go e8c07b5531 Set nopLogger to DefaultCallback for avoid nil pointer dereference (#2742) il y a 4 ans
main.go f616ccd397 1. fix bug : https://github.com/jinzhu/gorm/issues/2700 il y a 4 ans
main_test.go 9d2b65f8c9 add query hint support (#2351) il y a 4 ans
migration_test.go 09a868b381 Handle syntax to specify an index prefix length il y a 5 ans
model.go d08894cd69 Rename test files il y a 8 ans
model_struct.go 530711e724 fix a race condition on IsForeignKey that is being detected by -race sometimes. il y a 4 ans
model_struct_test.go 530711e724 fix a race condition on IsForeignKey that is being detected by -race sometimes. il y a 4 ans
multi_primary_keys_test.go 5730b92954 Fix tests with mssql il y a 7 ans
naming.go 6f58f8a52c added naming strategy option for db, table and column names (#2040) il y a 5 ans
naming_test.go 6f58f8a52c added naming strategy option for db, table and column names (#2040) il y a 5 ans
pointer_test.go 8d716be896 Fix some go vet/lint reports il y a 8 ans
polymorphic_test.go afaadc3942 Refactor named value support for PolymorphicType il y a 7 ans
preload_test.go b4927348ae gofmt il y a 5 ans
query_test.go 23f6840776 Add limit and offset parse error il y a 4 ans
scaner_test.go 5730b92954 Fix tests with mssql il y a 7 ans
scope.go 5490a87fe9 Should use global NowFunc when trace SQL il y a 4 ans
scope_test.go 9692c599ad Fix drop table error with table options il y a 5 ans
search.go 5b3e40ac12 Rename expr type to make it public. (#2604) il y a 4 ans
search_test.go da7830ea50 Add SelectAttrs, OmitAttrs il y a 9 ans
test_all.sh 2c68f695c3 Set AutoIncrement to false with tag il y a 6 ans
update_test.go 2cd7acefc3 Fixing 4 typos in comments and gofmt -s in all files il y a 7 ans
utils.go 5b3e40ac12 Rename expr type to make it public. (#2604) il y a 4 ans
wercker.yml 835ca6ca93 Update wercker.yml to include mysql 8 il y a 5 ans

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