Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for InstanceSet (0.05 sec)

  1. gorm.go

    	return db.Statement.Settings.Load(key)
    }
    
    // InstanceSet store value with key into current db instance's context
    func (db *DB) InstanceSet(key string, value interface{}) *DB {
    	tx := db.getInstance()
    	tx.Statement.Settings.Store(fmt.Sprintf("%p", tx.Statement)+key, value)
    	return tx
    }
    
    // InstanceGet get value with key from current db instance's context
    func (db *DB) InstanceGet(key string) (interface{}, bool) {
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Wed Oct 09 11:29:48 UTC 2024
    - 12.1K bytes
    - Viewed (0)
Back to top