NewWhere creates a WHERE or HAVING clause out of a Expr. If the expression is nil, it returns nil.
(typ string, expr Expr)
| 1901 | // NewWhere creates a WHERE or HAVING clause out |
| 1902 | // of a Expr. If the expression is nil, it returns nil. |
| 1903 | func NewWhere(typ string, expr Expr) *Where { |
| 1904 | if expr == nil { |
| 1905 | return nil |
| 1906 | } |
| 1907 | return &Where{Type: typ, Expr: expr} |
| 1908 | } |
| 1909 | |
| 1910 | // Format formats the node. |
| 1911 | func (node *Where) Format(buf *nodeBuffer) { |
no outgoing calls
no test coverage detected