public virtual bool Action(DropViewStatement stmt) { if (stmt.Views.Count > 0) { FixIdentifiers(stmt.Views[0], ObjectType.VIEW, stmt.Views[0].Identifiers); } return(false); }
protected override void VisitDropViewStatement(DropViewStatement statement) { State.Write(Symbols.DROP); State.Write(Symbols.VIEW); if (statement.CheckExists) { State.Write(Symbols.IF); State.Write(Symbols.EXISTS); } VisitNameToken(statement.Name); }
void AlterView(Name tokenName, IStatement definitionStatement) { DropViewStatement dropViewStatement = Sql.DropView(tokenName, true); VisitStatement(dropViewStatement); State.WriteStatementTerminator(); CreateViewStatement createViewStatement = Sql.CreateView(tokenName, definitionStatement); VisitStatement(createViewStatement); State.WriteStatementTerminator(); }
void AlterView(Name tokenName, IStatement definitionStatement) { State.Write(Symbols.DO); State.WriteCRLF(); State.Write(this.TempName); State.WriteCRLF(); State.Write(Symbols.BEGIN); DropViewStatement dropViewStatement = Sql.DropView(tokenName, true); VisitStatement(dropViewStatement); State.WriteStatementTerminator(); CreateViewStatement createViewStatement = Sql.CreateView(tokenName, definitionStatement); VisitStatement(createViewStatement); State.WriteStatementTerminator(); State.Write(Symbols.END); State.WriteCRLF(); State.Write(this.TempName); }
public override void Visit(DropViewStatement node) { this.action(node); }
public override void ExplicitVisit(DropViewStatement fragment) { _fragments.Add(fragment); }
protected abstract void VisitDropViewStatement(DropViewStatement statement);