19 namespace Deveel.Data.Sql.Parser {
34 public string OnDeleteAction {
get;
private set; }
36 public string OnUpdateAction {
get;
private set; }
40 var keyNode = (SqlKeyNode) node;
41 if (String.Equals(keyNode.Text,
"NULL", StringComparison.OrdinalIgnoreCase)) {
47 }
else if (String.Equals(keyNode.Text,
"NOT", StringComparison.OrdinalIgnoreCase)) {
49 }
else if (String.Equals(keyNode.Text,
"REFERENCES", StringComparison.OrdinalIgnoreCase)) {
51 }
else if (String.Equals(keyNode.Text,
"CHECK", StringComparison.OrdinalIgnoreCase)) {
53 }
else if (String.Equals(keyNode.Text,
"PRIMARY", StringComparison.OrdinalIgnoreCase)) {
55 }
else if (String.Equals(keyNode.Text,
"UNIQUE", StringComparison.OrdinalIgnoreCase)) {
59 CheckExpression = (IExpressionNode) node;
62 throw new InvalidOperationException();
64 ReferencedTable = ((ObjectNameNode) node);
67 return base.OnChildNode(node);
override ISqlNode OnChildNode(ISqlNode node)
During the initialization of the node from the parser, this method is called for every child node add...
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.
Represents a keyword found during the compilation of a source text.
Represents a composed name for an object within the system.
ConstraintType
An enumeration of all the supported kinds of constraints within a table or a schema.
This interface acts like a marker that indicates if a ISqlNode represents a SQL expression.
The default implementation of ISqlNode, that is a node in the text analysis parsing of SQL commands...