Documentation
¶
Overview ¶
Package parser implements a parser for ClickHouse SQL.
Index ¶
Constants ¶
View Source
const ( LOWEST = iota ALIAS_PREC // AS TERNARY_PREC // ? : (ternary operator - very low precedence in ClickHouse) OR_PREC // OR AND_PREC // AND NOT_PREC // NOT COMPARE // =, !=, <, >, <=, >=, LIKE, IN, BETWEEN, IS CONCAT_PREC // || ADD_PREC // +, - MUL_PREC // *, /, % UNARY // -x, NOT x CALL // function(), array[] HIGHEST )
Operator precedence levels
Variables ¶
This section is empty.
Functions ¶
func Explain ¶
Explain returns the EXPLAIN AST output for a statement, matching ClickHouse's format.
func ExplainStatements ¶
ExplainStatements returns the EXPLAIN AST output for multiple statements. This handles the special ClickHouse behavior where INSERT VALUES followed by SELECT on the same line outputs the INSERT AST and then executes the SELECT, printing its result.
Types ¶
Click to show internal directories.
Click to hide internal directories.