Format implements the NodeFormatter interface.
(ctx *FmtCtx)
| 466 | |
| 467 | // Format implements the NodeFormatter interface. |
| 468 | func (node *DropSchema) Format(ctx *FmtCtx) { |
| 469 | ctx.WriteString("DROP SCHEMA ") |
| 470 | if node.IfExists { |
| 471 | ctx.WriteString("IF EXISTS ") |
| 472 | } |
| 473 | for i := range node.Names { |
| 474 | if i > 0 { |
| 475 | ctx.WriteString(", ") |
| 476 | } |
| 477 | ctx.FormatNameP(&node.Names[i]) |
| 478 | } |
| 479 | if node.DropBehavior != DropDefault { |
| 480 | ctx.WriteString(" ") |
| 481 | ctx.WriteString(node.DropBehavior.String()) |
| 482 | } |
| 483 | } |
nothing calls this directly
no test coverage detected