Version: v1.9.13-0...-bad013d Latest Latest

This package is not in the latest version of its module.

Go to latest
Published: Jun 4, 2020 License: MIT Imports: 8 Imported by: 0




This section is empty.


This section is empty.


func AfterCreate

func AfterCreate(db *gorm.DB)

func AfterDelete

func AfterDelete(db *gorm.DB)

func AfterQuery

func AfterQuery(db *gorm.DB)

func AfterUpdate

func AfterUpdate(db *gorm.DB)

func BeforeCreate

func BeforeCreate(db *gorm.DB)

func BeforeDelete

func BeforeDelete(db *gorm.DB)

func BeforeUpdate

func BeforeUpdate(db *gorm.DB)

func BeginTransaction

func BeginTransaction(db *gorm.DB)

func BuildQuerySQL

func BuildQuerySQL(db *gorm.DB)

func CommitOrRollbackTransaction

func CommitOrRollbackTransaction(db *gorm.DB)

func ConvertMapToValuesForCreate

func ConvertMapToValuesForCreate(stmt *gorm.Statement, mapValue map[string]interface{}) (values clause.Values)

ConvertMapToValuesForCreate convert map to values

func ConvertSliceOfMapToValuesForCreate

func ConvertSliceOfMapToValuesForCreate(stmt *gorm.Statement, mapValues []map[string]interface{}) (values clause.Values)

ConvertSliceOfMapToValuesForCreate convert slice of map to values

func ConvertToAssignments

func ConvertToAssignments(stmt *gorm.Statement) (set clause.Set)

ConvertToAssignments convert to update assignments

func ConvertToCreateValues

func ConvertToCreateValues(stmt *gorm.Statement) clause.Values

ConvertToCreateValues convert to create values

func Create

func Create(config *Config) func(db *gorm.DB)

func CreateWithReturning

func CreateWithReturning(db *gorm.DB)

func Delete

func Delete(db *gorm.DB)

func Preload

func Preload(db *gorm.DB)

func Query

func Query(db *gorm.DB)

func RawExec

func RawExec(db *gorm.DB)

func RegisterDefaultCallbacks

func RegisterDefaultCallbacks(db *gorm.DB, config *Config)

func RowQuery

func RowQuery(db *gorm.DB)

func SaveAfterAssociations

func SaveAfterAssociations(db *gorm.DB)

func SaveBeforeAssociations

func SaveBeforeAssociations(db *gorm.DB)

func SelectAndOmitColumns

func SelectAndOmitColumns(stmt *gorm.Statement, requireCreate, requireUpdate bool) (map[string]bool, bool)

SelectAndOmitColumns get select and omit columns, select -> true, omit -> false

func SetupUpdateReflectValue

func SetupUpdateReflectValue(db *gorm.DB)

func Update

func Update(db *gorm.DB)


type Config

type Config struct {
	LastInsertIDReversed bool
	WithReturning        bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL