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(";"); }
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); }
protected abstract void VisitDropSchemaStatement(DropSchemaStatement statement);
protected override void VisitDropSchemaStatement(DropSchemaStatement statement) { throw new NotImplementedException(); }