Skip to content
The fantastic ORM library for Golang, aims to be developer friendly
Go
Branch: master
Clone or download
emirb Fix #2517 : Check for incomplete parentheses to prevent SQL inj… (#2519)
Fix #2517 : Check for incomplete parentheses to prevent SQL injection.
Latest commit 836fb2c Jun 30, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Simplify GitHub templates Feb 10, 2018
dialects Handle syntax to specify an index prefix length Apr 19, 2019
.gitignore Enable codecov May 2, 2019
License Add MIT License file Jan 5, 2015
README.md Change gorm.io links to https May 5, 2019
association.go add comment (#2163) Nov 3, 2018
association_test.go Add tag association_autoupdate, association_autocreate, association_s… Feb 10, 2018
callback.go Remove unused import May 8, 2019
callback_create.go add an override on the DB instance instead of using the global NowFun… Jun 11, 2019
callback_delete.go add an override on the DB instance instead of using the global NowFun… Jun 11, 2019
callback_query.go add an override on the DB instance instead of using the global NowFun… Jun 11, 2019
callback_query_preload.go return empty slice for many2many if no asscociation was found Mar 13, 2019
callback_row_query.go apply gorm:query_option in Count() Apr 19, 2019
callback_save.go lock TagSettings structure when modified (#1796) Sep 9, 2018
callback_system_test.go Pass logger into Callback{} so that logs are printed consistently May 7, 2019
callback_update.go add an override on the DB instance instead of using the global NowFun… Jun 11, 2019
callbacks_test.go update tests Aug 28, 2014
create_test.go add an override on the DB instance instead of using the global NowFun… Jun 11, 2019
customize_column_test.go fix the table name of many2many Mar 14, 2019
delete_test.go Fix customize DeletedAt's column name Feb 1, 2017
dialect.go Handle syntax to specify an index prefix length Apr 19, 2019
dialect_common.go Handle syntax to specify an index prefix length Apr 19, 2019
dialect_mysql.go Handle syntax to specify an index prefix length Apr 19, 2019
dialect_postgres.go lock TagSettings structure when modified (#1796) Sep 9, 2018
dialect_sqlite3.go lock TagSettings structure when modified (#1796) Sep 9, 2018
docker-compose.yml Setup test env Feb 10, 2018
embedded_struct_test.go Fix support embedded pointer type struct, close #1450 Feb 13, 2018
errors.go amended comments in error.go for clarity and grammar; for more polish… Jan 2, 2019
errors_test.go Make gorm.Errors available for use outside gorm Oct 25, 2016
field.go Check valuer interface before scan value (#2155) Nov 3, 2018
field_test.go Removed the deps on uuid and appengine (#2354) Apr 4, 2019
go.mod Update go.mod Jun 13, 2019
go.sum Update go.mod Jun 13, 2019
interface.go Add BeginTx for parity with sql.DB.BeginTx (#2227) Jun 11, 2019
join_table_handler.go Call DefaultTableNameHandler for JoinTableHandler's table Feb 12, 2018
join_table_test.go mysql only accept offset with limit together Jul 3, 2017
logger.go Better log output for uint* Feb 10, 2019
main.go Fix function name of comment Jun 24, 2019
main_test.go Remove Debug mode from test code Jun 13, 2019
migration_test.go Handle syntax to specify an index prefix length Apr 19, 2019
model.go Rename test files Mar 8, 2016
model_struct.go Don't set primary key's HasDefaultValue to true (#2127) Jun 11, 2019
multi_primary_keys_test.go Fix tests with mssql Mar 22, 2017
naming.go added naming strategy option for db, table and column names (#2040) Sep 9, 2018
naming_test.go added naming strategy option for db, table and column names (#2040) Sep 9, 2018
pointer_test.go Fix some go vet/lint reports Jan 15, 2016
polymorphic_test.go Refactor named value support for PolymorphicType Oct 6, 2016
preload_test.go gofmt Apr 14, 2019
query_test.go Fix #2517 : Check for incomplete parentheses to prevent SQL injection. Jun 25, 2019
scaner_test.go Fix tests with mssql Mar 22, 2017
scope.go Fix #2517 : Check for incomplete parentheses to prevent SQL injection. Jun 25, 2019
scope_test.go Fix drop table error with table options May 8, 2019
search.go Do not ignore order on distinct query (#1570) Sep 4, 2017
search_test.go Add SelectAttrs, OmitAttrs Mar 12, 2015
test_all.sh Set AutoIncrement to false with tag Feb 10, 2018
update_test.go Fixing 4 typos in comments and gofmt -s in all files Feb 10, 2017
utils.go getValueFromFields doesn't panic on nil pointers (#2021) Sep 9, 2018
wercker.yml Update wercker.yml to include mysql 8 Jun 13, 2019

README.md

GORM

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

go report card wercker status codecov Join the chat at https://gitter.im/jinzhu/gorm 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

You can’t perform that action at this time.