DeveelDB  20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
CreateSchemaNode.cs
Go to the documentation of this file.
1 using System;
2 
4 
5 namespace Deveel.Data.Sql.Parser {
7  public string SchemaName { get; private set; }
8 
9  protected override ISqlNode OnChildNode(ISqlNode node) {
10  if (node is IdentifierNode)
11  SchemaName = ((IdentifierNode) node).Text;
12 
13  return base.OnChildNode(node);
14  }
15 
16  protected override void BuildStatement(StatementBuilder builder) {
17  builder.Statements.Add(new CreateSchemaStatement(SchemaName));
18  }
19  }
20 }
This is a simple identifier within a SQL grammar.
Defines the contract for nodes in an AST model for a SQL grammar analysis and parsing.
Definition: ISqlNode.cs:25
ICollection< IStatement > Statements
override void BuildStatement(StatementBuilder builder)
override ISqlNode OnChildNode(ISqlNode node)
During the initialization of the node from the parser, this method is called for every child node add...