18 using System.Collections.Generic;
24 namespace Deveel.Data.Sql.Parser {
66 Source = (IFromSourceNode) node;
67 }
else if (node.
NodeName ==
"from_source") {
68 Source = (IFromSourceNode) node.
ChildNodes.FirstOrDefault();
69 }
else if (node.
NodeName ==
"on_opt") {
71 }
else if (node.
NodeName ==
"join_opt") {
77 return base.OnChildNode(node);
81 var sb =
new StringBuilder();
83 foreach (var childNode
in node.ChildNodes) {
87 sb.Append(childNode.NodeName);
Defines the contract for nodes in an AST model for a SQL grammar analysis and parsing.
JoinType
Enumerates the kind of group join in a selection query.
string NodeName
Gets the name of the node analyzed from the parser.
void GetJoinType(ISqlNode node)
IEnumerable< ISqlNode > ChildNodes
Gets a read-only enumeration of the children nodes, if any.
Defines the base contract of the source of a query.
A node describing the JOIN between two sources within a query.
This interface acts like a marker that indicates if a ISqlNode represents a SQL expression.
override ISqlNode OnChildNode(ISqlNode node)
During the initialization of the node from the parser, this method is called for every child node add...
The default implementation of ISqlNode, that is a node in the text analysis parsing of SQL commands...