Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. chainable_api.go

    		tx.Statement.AddClause(clause.Where{Exprs: conds})
    	}
    	return
    }
    
    // Not add NOT conditions
    //
    // Not works similarly to where, and has the same syntax.
    //
    //	// Find the first user with name not equal to jinzhu
    //	db.Not("name = ?", "jinzhu").First(&user)
    func (db *DB) Not(query interface{}, args ...interface{}) (tx *DB) {
    	tx = db.getInstance()
    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