Module ast

Module ast 

Source
Expand description

Abstract Syntax Tree (AST) definitions for SQL queries

This module contains all the data structures that represent the parsed SQL query structure.

Structs§

CTE
Common Table Expression (CTE) structure
ColumnRef
Column reference with optional quoting information and table prefix
Comment
Represents a SQL comment (line or block)
Condition
IntoTable
INTO clause for creating temporary tables
JoinClause
Join clause structure
JoinCondition
Join condition - can be multiple conditions connected by AND
OrderByColumn
SelectStatement
SimpleWhenBranch
SingleJoinCondition
Single join condition
TemplateVar
Template variable for injecting temp table data into WEB CTEs
WebCTESpec
Specification for WEB CTEs
WhenBranch
WhereClause
WindowFrame
Window frame specification
WindowSpec

Enums§

CTEType
Type of CTE - standard SQL or WEB fetch
DataFormat
Data format for WEB CTEs
FrameBound
Window frame bounds
FrameUnit
Window frame unit (ROWS or RANGE)
HttpMethod
HTTP methods for WEB CTEs
JoinOperator
Join operator for join conditions
JoinType
Join type enumeration
LogicalOp
QuoteStyle
Quote style for identifiers (column names, table names, etc.)
SelectItem
Represents a SELECT item - either a simple column or a computed expression with alias
SetOperation
Set operation type for combining SELECT statements
SortDirection
SqlExpression
TableFunction
Table function that generates virtual tables
TableSource
Table source - either a file/table name or a derived table (subquery/CTE)