Exemplo n.º 1
0
        protected override void VisitAlterSchemaStatement(AlterSchemaStatement statement)
        {
            var schemaName = ResolveName(statement.Name);

            State.Write(Symbols.ALTER);
            State.Write(Symbols.SCHEMA);
            State.Write(schemaName);

            if (statement.NewName != null)
            {
                State.Write(Symbols.RENAME);
                State.Write(Symbols.TO);

                VisitNameToken(statement.NewName);
            }

            if (statement.NewOwner != null)
            {
                State.Write(Symbols.OWNER);
                State.Write(Symbols.TO);

                VisitNameToken(statement.NewOwner);
            }
        }
Exemplo n.º 2
0
 public override void Visit(AlterSchemaStatement node) { this.action(node); }
 public override void ExplicitVisit(AlterSchemaStatement fragment)
 {
     _fragments.Add(fragment);
 }
Exemplo n.º 4
0
 protected abstract void VisitAlterSchemaStatement(AlterSchemaStatement statement);
Exemplo n.º 5
0
 protected override void VisitAlterSchemaStatement(AlterSchemaStatement statement)
 {
     throw new NotImplementedException();
 }