Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for RegisterDefaultCallbacks (0.22 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. callbacks/callbacks.go

    )
    
    type Config struct {
    	LastInsertIDReversed bool
    	CreateClauses        []string
    	QueryClauses         []string
    	UpdateClauses        []string
    	DeleteClauses        []string
    }
    
    func RegisterDefaultCallbacks(db *gorm.DB, config *Config) {
    	enableTransaction := func(db *gorm.DB) bool {
    		return !db.SkipDefaultTransaction
    	}
    
    	if len(config.CreateClauses) == 0 {
    		config.CreateClauses = createClauses
    	}
    Created: Sun Apr 05 09:35:12 GMT 2026
    - Last Modified: Sat Mar 21 11:35:55 GMT 2026
    - 3.4K bytes
    - Click Count (0)
Back to Top