package callbacks
Import Path
gorm.io/gorm/callbacks (on go.dev)
Dependency Relation
imports 8 packages, and imported by one package
Involved Source Files
associations.go
callbacks.go
callmethod.go
create.go
delete.go
helper.go
interfaces.go
preload.go
query.go
raw.go
row.go
transaction.go
update.go
Exported Type Names
type AfterCreateInterface (interface)
(T) AfterCreate(*gorm.DB) error
type AfterDeleteInterface (interface)
(T) AfterDelete(*gorm.DB) error
type AfterFindInterface (interface)
(T) AfterFind(*gorm.DB) error
type AfterSaveInterface (interface)
(T) AfterSave(*gorm.DB) error
type AfterUpdateInterface (interface)
(T) AfterUpdate(*gorm.DB) error
type BeforeCreateInterface (interface)
(T) BeforeCreate(*gorm.DB) error
type BeforeDeleteInterface (interface)
(T) BeforeDelete(*gorm.DB) error
type BeforeSaveInterface (interface)
(T) BeforeSave(*gorm.DB) error
type BeforeUpdateInterface (interface)
(T) BeforeUpdate(*gorm.DB) error
type Config (struct)
LastInsertIDReversed bool
WithReturning bool
func Create(config *Config) func(db *gorm.DB)
func RegisterDefaultCallbacks(db *gorm.DB, config *Config)
Exported Values
func ConvertMapToValuesForCreate(stmt *gorm.Statement, mapValue map[string]interface{}) (values clause.Values)
ConvertMapToValuesForCreate convert map to values
func ConvertSliceOfMapToValuesForCreate(stmt *gorm.Statement, mapValues []map[string]interface{}) (values clause.Values)
ConvertSliceOfMapToValuesForCreate convert slice of map to values
func ConvertToAssignments(stmt *gorm.Statement) (set clause.Set)
ConvertToAssignments convert to update assignments
func ConvertToCreateValues(stmt *gorm.Statement) (values clause.Values)
ConvertToCreateValues convert to create values
![]() |
The pages are generated with Golds v0.1.6. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project and developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |