...

Source file src/github.com/doug-martin/goqu/v9/exp/compound.go

Documentation: github.com/doug-martin/goqu/v9/exp

     1  package exp
     2  
     3  type compound struct {
     4  	t   CompoundType
     5  	rhs AppendableExpression
     6  }
     7  
     8  func NewCompoundExpression(ct CompoundType, rhs AppendableExpression) CompoundExpression {
     9  	return compound{t: ct, rhs: rhs}
    10  }
    11  
    12  func (c compound) Expression() Expression { return c }
    13  
    14  func (c compound) Clone() Expression {
    15  	return compound{t: c.t, rhs: c.rhs.Clone().(AppendableExpression)}
    16  }
    17  
    18  func (c compound) Type() CompoundType        { return c.t }
    19  func (c compound) RHS() AppendableExpression { return c.rhs }
    20  

View as plain text