Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for fungus (0.13 sec)

  1. chainable_api.go

    //	    }
    //	}
    //
    //	db.Scopes(AmountGreaterThan1000, OrderStatus([]string{"paid", "shipped"})).Find(&orders)
    func (db *DB) Scopes(funcs ...func(*DB) *DB) (tx *DB) {
    	tx = db.getInstance()
    	tx.Statement.scopes = append(tx.Statement.scopes, funcs...)
    	return tx
    }
    
    func (db *DB) executeScopes() (tx *DB) {
    	scopes := db.Statement.scopes
    	db.Statement.scopes = nil
    	for _, scope := range scopes {
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Wed Apr 17 03:38:55 GMT 2024
    - 14.3K bytes
    - Viewed (1)
Back to top