public CreateProcedureStatement(Qualified<SchemaName, ProcedureName> procedureName, Optional<Sequence<ProcedureParameter>> parameters, OptionToken option, ReplicationToken replication, StatementBlock body) { Debug.Assert(procedureName != null); Debug.Assert(body != null); this.procedureName = procedureName; this.option = option; this.replication = replication; this.parameters = parameters.ToList(); this.body = body; }
public CreateTriggerStatement(Qualified<SchemaName, TriggerName> triggerName, Qualified<SchemaName, TableName> tableName, TriggerTypeToken triggerType, Sequence<DmlOperationToken> triggerOperations, ReplicationToken replication, Statement statement) { Debug.Assert(triggerName != null); Debug.Assert(triggerOperations != null); Debug.Assert(triggerType != null); Debug.Assert(tableName != null); Debug.Assert(statement != null); this.triggerName = triggerName; this.tableName = tableName; this.statement = statement; this.triggerOperations = triggerOperations.Select(token => token.Operation).ToList(); this.replication = replication; type = triggerType; }
public TableCheckConstraint(ConstraintName constraintName, ReplicationToken replication, Predicate predicate): base(constraintName) { Debug.Assert(predicate != null); this.replication = replication; this.predicate = predicate; }
public TableCheckConstraint(ReplicationToken replication, Predicate predicate): this(null, replication, predicate) {}