...
1 package exp
2
3 type (
4 lateral struct {
5 table AppendableExpression
6 }
7 )
8
9
10
11 func NewLateralExpression(table AppendableExpression) LateralExpression {
12 return lateral{table: table}
13 }
14
15 func (l lateral) Clone() Expression {
16 return NewLateralExpression(l.table)
17 }
18
19 func (l lateral) Table() AppendableExpression {
20 return l.table
21 }
22
23 func (l lateral) Expression() Expression { return l }
24 func (l lateral) As(val interface{}) AliasedExpression { return NewAliasExpression(l, val) }
25
View as plain text