20 namespace Deveel.Data.Sql.Parser {
38 public bool Ascending {
get;
private set; }
42 if (node.
NodeName ==
"sql_reference_expression") {
44 }
else if (node.
NodeName ==
"sql_expression") {
46 }
else if (node.
NodeName ==
"sort_order") {
50 return base.OnChildNode(node);
56 var keyNode = (SqlKeyNode) child;
57 if (String.Equals(keyNode.Text,
"ASC", StringComparison.OrdinalIgnoreCase)) {
59 }
else if (String.Equals(keyNode.Text,
"DESC", StringComparison.OrdinalIgnoreCase)) {
Within an SQL query node, this describes the ordering criteria that will be applied when returning th...
Defines the contract for nodes in an AST model for a SQL grammar analysis and parsing.
Represents a keyword found during the compilation of a source text.
string NodeName
Gets the name of the node analyzed from the parser.
void GetOrder(ISqlNode node)
IEnumerable< ISqlNode > ChildNodes
Gets a read-only enumeration of the children nodes, if any.
override ISqlNode OnChildNode(ISqlNode node)
During the initialization of the node from the parser, this method is called for every child node add...
This interface acts like a marker that indicates if a ISqlNode represents a SQL expression.
The default implementation of ISqlNode, that is a node in the text analysis parsing of SQL commands...