NewQuerySpecification creates QuerySpecification
(location *NodeLocation, sel *Select, from IRelation, where IExpression, groupBy *GroupBy, having IExpression, orderBy *OrderBy, limit string)
| 36 | |
| 37 | // NewQuerySpecification creates QuerySpecification |
| 38 | func NewQuerySpecification(location *NodeLocation, |
| 39 | sel *Select, |
| 40 | from IRelation, |
| 41 | where IExpression, |
| 42 | groupBy *GroupBy, |
| 43 | having IExpression, |
| 44 | orderBy *OrderBy, |
| 45 | limit string) *QuerySpecification { |
| 46 | return &QuerySpecification{ |
| 47 | NewQueryBody(location), |
| 48 | sel, |
| 49 | from, |
| 50 | where, |
| 51 | groupBy, |
| 52 | having, |
| 53 | orderBy, |
| 54 | limit, |
| 55 | } |
| 56 | } |
| 57 | |
| 58 | // Accept accepts visitor |
| 59 | func (e *QuerySpecification) Accept(visitor AstVisitor, ctx interface{}) interface{} { |
no test coverage detected