Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for AndConditions (0.1 sec)

  1. clause/where.go

    		return nil
    	}
    
    	if len(exprs) == 1 {
    		if _, ok := exprs[0].(OrConditions); !ok {
    			return exprs[0]
    		}
    	}
    
    	return AndConditions{Exprs: exprs}
    }
    
    type AndConditions struct {
    	Exprs []Expression
    }
    
    func (and AndConditions) Build(builder Builder) {
    	if len(and.Exprs) > 1 {
    		builder.WriteByte('(')
    		buildExprs(and.Exprs, builder, AndWithSpace)
    		builder.WriteByte(')')
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Thu Apr 25 12:22:53 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  2. clause/where_test.go

    			[]interface{}{100, 60},
    		},
    		{
    			[]clause.Interface{clause.Select{}, clause.From{}, clause.Where{
    				Exprs: []clause.Expression{
    					clause.Not(clause.AndConditions{
    						Exprs: []clause.Expression{
    							clause.Eq{Column: clause.PrimaryColumn, Value: "1"},
    							clause.Gt{Column: "age", Value: 18},
    						}}, clause.OrConditions{
    						Exprs: []clause.Expression{
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Thu Apr 25 12:22:53 UTC 2024
    - 6.2K bytes
    - Viewed (0)
Back to top