Esempio n. 1
0
 public virtual bool Action(DropViewStatement stmt)
 {
     if (stmt.Views.Count > 0)
     {
         FixIdentifiers(stmt.Views[0], ObjectType.VIEW, stmt.Views[0].Identifiers);
     }
     return(false);
 }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
        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();
        }
Esempio n. 4
0
        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);
        }
Esempio n. 5
0
 public override void Visit(DropViewStatement node) { this.action(node); }
 public override void ExplicitVisit(DropViewStatement fragment)
 {
     _fragments.Add(fragment);
 }
Esempio n. 7
0
 protected abstract void VisitDropViewStatement(DropViewStatement statement);