DeveelDB  20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
DropSchemaStatementNode.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 
14  return base.OnChildNode(node);
15  }
16 
17  protected override void BuildStatement(StatementBuilder builder) {
18  builder.Statements.Add(new DropSchemaStatement(SchemaName));
19  }
20  }
21 }
override void BuildStatement(StatementBuilder builder)
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
override ISqlNode OnChildNode(ISqlNode node)
During the initialization of the node from the parser, this method is called for every child node add...
ICollection< IStatement > Statements