pub enum Rule {
Show 18 variants
reserved_keyword,
WHITESPACE,
identifier,
number,
string,
comparison_op,
logical_op,
aggregate_func,
order_type,
select_stmt,
agg_field,
where_condition,
from_clause,
join_clause,
where_clause,
group_by_clause,
order_by_clause,
limit_clause,
}Variants§
reserved_keyword
Reserved SQL keywords that cannot be used as identifiers.
WHITESPACE
Whitespace characters, including spaces, tabs, and newlines.
identifier
Valid SQL identifier, which cannot be a reserved keyword and must start with a letter, followed by letters, numbers, or underscores.
number
Numeric literals, consisting of one or more digits.
string
String literals, enclosed in double quotes.
comparison_op
Comparison operators for SQL conditions.
logical_op
Logical operators used to combine conditions in WHERE clauses.
aggregate_func
Supported SQL aggregate functions.
order_type
Specifies sorting order: ascending or descending.
select_stmt
Complete SQL SELECT statement syntax, including optional clauses.
agg_field
Aggregate field in SELECT, which can include a function or just an identifier.
where_condition
Single WHERE clause condition with an identifier, comparison operator, and value, which can be a string or a number.
from_clause
FROM clause, specifying the primary table for the query.
join_clause
JOIN clause, specifying the table to join and the columns for the join condition.
where_clause
WHERE clause, allowing multiple conditions joined by logical operators.
group_by_clause
GROUP BY clause, specifying columns for grouping results.
order_by_clause
ORDER BY clause, specifying columns and order for sorting results.
limit_clause
LIMIT clause, specifying the maximum number of results.