Versions in this module Expand all Collapse all v1 v1.22.6 Feb 1, 2022 Changes in this version + func AfterCreate(db *gorm.DB) + func AfterDelete(db *gorm.DB) + func AfterQuery(db *gorm.DB) + func AfterUpdate(db *gorm.DB) + func BeforeCreate(db *gorm.DB) + func BeforeDelete(db *gorm.DB) + func BeforeUpdate(db *gorm.DB) + func BeginTransaction(db *gorm.DB) + func BuildQuerySQL(db *gorm.DB) + func CommitOrRollbackTransaction(db *gorm.DB) + func ConvertMapToValuesForCreate(stmt *gorm.Statement, mapValue map[string]interface{}) (values clause.Values) + func ConvertSliceOfMapToValuesForCreate(stmt *gorm.Statement, mapValues []map[string]interface{}) (values clause.Values) + func ConvertToAssignments(stmt *gorm.Statement) (set clause.Set) + func ConvertToCreateValues(stmt *gorm.Statement) (values clause.Values) + func Create(config *Config) func(db *gorm.DB) + func Delete(config *Config) func(db *gorm.DB) + func DeleteBeforeAssociations(db *gorm.DB) + func Preload(db *gorm.DB) + func Query(db *gorm.DB) + func RawExec(db *gorm.DB) + func RegisterDefaultCallbacks(db *gorm.DB, config *Config) + func RowQuery(db *gorm.DB) + func SaveAfterAssociations(create bool) func(db *gorm.DB) + func SaveBeforeAssociations(create bool) func(db *gorm.DB) + func SetupUpdateReflectValue(db *gorm.DB) + func Update(config *Config) func(db *gorm.DB) + type AfterCreateInterface interface + AfterCreate func(*gorm.DB) error + type AfterDeleteInterface interface + AfterDelete func(*gorm.DB) error + type AfterFindInterface interface + AfterFind func(*gorm.DB) error + type AfterSaveInterface interface + AfterSave func(*gorm.DB) error + type AfterUpdateInterface interface + AfterUpdate func(*gorm.DB) error + type BeforeCreateInterface interface + BeforeCreate func(*gorm.DB) error + type BeforeDeleteInterface interface + BeforeDelete func(*gorm.DB) error + type BeforeSaveInterface interface + BeforeSave func(*gorm.DB) error + type BeforeUpdateInterface interface + BeforeUpdate func(*gorm.DB) error + type Config struct + CreateClauses []string + DeleteClauses []string + LastInsertIDReversed bool + QueryClauses []string + UpdateClauses []string