protected override void VisitDropSchemaStatement(DropSchemaStatement statement)
 {
     State.Write(Symbols.DROP);
     State.Write(Symbols.SCHEMA);
     if (statement.CheckExists)
     {
         State.Write(Symbols.IF);
         State.Write(Symbols.EXISTS);
     }
     State.Write(statement.Name.GetFullName(this.IdentifierOpenQuote, this.IdentifierCloseQuote));
 }
        public override void ExplicitVisit(DropSchemaStatement node)
        {
            _buffer.Append("drop schema ");
            PgExpressionVisitor visitor = new PgExpressionVisitor(_buffer);

            if (node.IsIfExists)
            {
                _buffer.Append("if exists ");
            }
            node.Schema.Accept(visitor);
            _buffer.AppendLine(";");
        }
Exemple #3
0
 protected override void VisitDropSchemaStatement(DropSchemaStatement statement)
 {
     State.Write(Symbols.DROP);
     State.Write(Symbols.SCHEMA);
     if (statement.CheckExists)
     {
         State.Write(Symbols.IF);
         State.Write(Symbols.EXISTS);
     }
     State.Write(statement.Name.GetFullName(this.IdentifierOpenQuote, this.IdentifierCloseQuote));
     if (statement.IsCascade.HasValue)
     {
         if (statement.IsCascade.Value)
         {
             State.Write(Symbols.CASCADE);
         }
         else
         {
             State.Write(Symbols.RESTRICT);
         }
     }
 }
 public override void Visit(DropSchemaStatement node) { this.action(node); }
 public override void ExplicitVisit(DropSchemaStatement fragment)
 {
     _fragments.Add(fragment);
 }
Exemple #6
0
 protected abstract void VisitDropSchemaStatement(DropSchemaStatement statement);
Exemple #7
0
 protected override void VisitDropSchemaStatement(DropSchemaStatement statement)
 {
     throw new NotImplementedException();
 }