18 using System.Collections.Generic;
20 using System.Linq.Expressions;
24 namespace Deveel.Data.Sql.Parser {
32 SimpleUpdate = (SimpleUpdateNode) node;
34 QueryUpdate = (QueryUpdateNode) node;
37 return base.OnChildNode(node);
41 if (SimpleUpdate != null) {
42 BuildSimpleUpdate(builder, SimpleUpdate);
43 }
else if (QueryUpdate != null) {
44 BuildQueryUpdate(builder, QueryUpdate);
50 var assignments = UpdateAssignments(node.
Columns);
54 private IEnumerable<SqlColumnAssignment>
UpdateAssignments(IEnumerable<UpdateColumnNode> columns) {
62 throw new NotImplementedException();
Defines the contract for nodes in an AST model for a SQL grammar analysis and parsing.
IExpressionNode WhereExpression
void BuildQueryUpdate(StatementBuilder builder, QueryUpdateNode node)
static SqlExpression Build(IExpressionNode node)
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
IEnumerable< UpdateColumnNode > Columns
override void BuildStatement(StatementBuilder builder)
void BuildSimpleUpdate(StatementBuilder builder, SimpleUpdateNode node)
IEnumerable< SqlColumnAssignment > UpdateAssignments(IEnumerable< UpdateColumnNode > columns)