|
string | TableName [get, private set] |
|
IEnumerable< string > | ColumnNames [get, private set] |
|
ValuesInsertNode | ValuesInsert [get, private set] |
|
SetInsertNode | SetInsert [get, private set] |
|
QueryInsertNode | QueryInsert [get, private set] |
|
ISqlNode | Parent [get, private set] |
| Gets the parent of the current node. More...
|
|
string | NodeName [get, private set] |
| Gets the name of the node, as expressed in the SQL grammar. More...
|
|
IEnumerable< ISqlNode > | ChildNodes [get, private set] |
| Gets an immutable list of nodes, children of the current node. More...
|
|
IEnumerable< Token > | Tokens [get, private set] |
| Gets an immutable list of Token that represent the source of this node. More...
|
|
string ISqlNode. | NodeName [get] |
|
ISqlNode ISqlNode. | Parent [get] |
|
IEnumerable< ISqlNode > ISqlNode. | ChildNodes [get] |
|
IEnumerable< Token > ISqlNode. | Tokens [get] |
|
string | NodeName [get] |
| Gets the name of the node analyzed from the parser. More...
|
|
ISqlNode | Parent [get] |
| Gets a reference to the parent ISqlNode, if any. More...
|
|
IEnumerable< ISqlNode > | ChildNodes [get] |
| Gets a read-only enumeration of the children nodes, if any. More...
|
|
IEnumerable< Token > | Tokens [get] |
| Gets an enumeration of the tokens composing the this node. More...
|
|
Definition at line 25 of file InsertStatementNode.cs.
override void Deveel.Data.Sql.Parser.InsertStatementNode.BuildStatement |
( |
StatementBuilder |
builder | ) |
|
|
inlineprotectedvirtual |
Implements Deveel.Data.Sql.Parser.SqlStatementNode.
Definition at line 52 of file InsertStatementNode.cs.
56 valueInsert.
Values.Select(setNode => setNode.Values.Select(ExpressionBuilder.Build).ToArray()).ToList();
61 var columnNames =
new List<string>();
62 var values =
new List<SqlExpression>();
63 foreach (var assignment
in assignments) {
64 var columnName = assignment.ColumnName;
65 var value = ExpressionBuilder.Build(assignment.Value);
67 columnNames.Add(columnName);
74 var queryExpression = ExpressionBuilder.Build(queryInsert.QueryExpression) as
SqlQueryExpression;
75 if (queryExpression == null)
76 throw new SqlParseException();
IEnumerable< string > ColumnNames
IEnumerable< InsertValueNode > Values
QueryInsertNode QueryInsert
ValuesInsertNode ValuesInsert
IEnumerable< InsertSetNode > Assignments
override ISqlNode Deveel.Data.Sql.Parser.InsertStatementNode.OnChildNode |
( |
ISqlNode |
node | ) |
|
|
inlineprotectedvirtual |
During the initialization of the node from the parser, this method is called for every child node added to ChildNodes
- Parameters
-
node | The node being added to the list of children. |
- Returns
- Returns a normalized version of the child node, or the node itself.
Reimplemented from Deveel.Data.Sql.Parser.SqlNode.
Definition at line 36 of file InsertStatementNode.cs.
37 if (node is ObjectNameNode) {
39 }
else if (node.NodeName.Equals(
"insert_source")) {
40 var colNode = node.FindByName(
"column_list_opt");
45 SetInsert = node.FindNode<SetInsertNode>();
IEnumerable< string > ColumnNames
QueryInsertNode QueryInsert
override ISqlNode OnChildNode(ISqlNode node)
During the initialization of the node from the parser, this method is called for every child node add...
ValuesInsertNode ValuesInsert
IEnumerable<string> Deveel.Data.Sql.Parser.InsertStatementNode.ColumnNames |
|
getprivate set |
SetInsertNode Deveel.Data.Sql.Parser.InsertStatementNode.SetInsert |
|
getprivate set |
string Deveel.Data.Sql.Parser.InsertStatementNode.TableName |
|
getprivate set |
The documentation for this class was generated from the following file:
- /var/calculate/remote/distfiles/egit-src/deveeldb.git/src/deveeldb/Deveel.Data.Sql.Parser/InsertStatementNode.cs