3 using System.Linq.Expressions;
7 namespace Deveel.Data.Sql.Parser {
9 public string SequenceName {
get;
private set; }
19 public bool Cycle {
get;
private set; }
25 SequenceName = ((ObjectNameNode) node).Name;
26 }
else if (node.
NodeName.Equals(
"start_opt")) {
28 }
else if (node.
NodeName.Equals(
"increment_opt")) {
30 }
else if (node.
NodeName.Equals(
"minvalue_opt")) {
32 }
else if (node.
NodeName.Equals(
"maxvalue_opt")) {
34 }
else if (node.
NodeName.Equals(
"cycle_opt")) {
36 }
else if (node.
NodeName.Equals(
"cache_opt")) {
40 return base.OnChildNode(node);
47 if (IncrementBy != null)
51 if (StartWith != null)
58 statement.Cycle = Cycle;
static ObjectName Parse(string s)
Parses the given string into a ObjectName object.
Defines the contract for nodes in an AST model for a SQL grammar analysis and parsing.
Represents a composed name for an object within the system.
string NodeName
Gets the name of the node analyzed from the parser.
static SqlExpression Build(IExpressionNode node)
Describes the name of an object within a database.
ICollection< IStatement > Statements
IEnumerable< ISqlNode > ChildNodes
Gets a read-only enumeration of the children nodes, if any.
override void BuildStatement(StatementBuilder builder)
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...