AST Tree Nodes Reference¶
This section provides comprehensive documentation for all Abstract Syntax Tree (AST) nodes in General SQL Parser. The AST represents the hierarchical structure of parsed SQL statements, where each node corresponds to a specific SQL element.
Looking for "how do I walk the tree"?
This section is a catalog of node types — what fields each one has. If you're learning how the AST is wired together, start with Parse-tree Internals. If you want copy-pasteable traversal recipes, see Walk the Parse Tree.
Quick Navigation¶
Core Node Categories¶
📋 SQL Statements¶
Top-level SQL operations and commands
- SELECT Statement - Query operations
- INSERT Statement - Data insertion
- UPDATE Statement - Data modification
- DELETE Statement - Data removal
- DDL Statements - Schema operations
🔧 SQL Clauses¶
Components that appear within SQL statements - WHERE Clause - Filtering conditions - FROM Clause - Data sources - JOIN Clause - Table relationships - GROUP BY Clause - Data grouping - ORDER BY Clause - Result sorting
🧮 Expressions¶
Mathematical, logical, and comparison operations - Basic Expressions - TExpression overview - Function Calls - SQL functions - Arithmetic Operations - Math operations - Logical Operations - AND, OR, NOT - CASE Expressions - Conditional logic
🗂️ Table References¶
How tables and data sources are represented - Table Nodes - Basic table references - JOIN Nodes - Table joins - Derived Tables - Subqueries as tables
📊 Columns and Lists¶
Column selections and list structures
- Result Columns - SELECT column lists
- Column References - Column identifiers
- Value Lists - INSERT values
📝 Literals and Constants¶
Constant values and data types
- String Literals - Text values
- Numeric Literals - Numbers
- Date Literals - Dates and times
🚀 Advanced Nodes¶
Complex SQL features and database-specific nodes - Window Functions - OVER clauses - Common Table Expressions - WITH clauses - Database-Specific Features - Vendor extensions
Getting Started¶
For SQL Analysts¶
- Start with SELECT Statement to understand query structure
- Learn about WHERE Clause for filtering
- Explore Expressions for condition analysis
For .NET Developers¶
- Review Basic Expressions for core concepts
- Check API Reference for method signatures
- See the DocFX API site for the complete type reference
For Data Engineers¶
- Focus on Table References for lineage analysis
- Study JOIN Nodes for relationship mapping
- Use Advanced Nodes for complex transformations
Common Usage Patterns¶
Traversing AST trees¶
1 2 3 4 5 6 | |
Finding specific node types¶
1 2 3 4 5 6 7 8 | |
Node Hierarchy Overview¶
1 2 3 4 5 6 7 8 9 10 11 12 13 | |
📋 Nodes in XML¶
See Also¶
- API Reference — member-level reference
- DocFX API site — the complete .NET API
- Basic Parsing Tutorial — getting started guide
- How-to Guides — practical examples