Format implements the NodeFormatter interface.
(ctx *FmtCtx)
| 256 | |
| 257 | // Format implements the NodeFormatter interface. |
| 258 | func (node *DropTrigger) Format(ctx *FmtCtx) { |
| 259 | ctx.WriteString("DROP TRIGGER ") |
| 260 | if node.IfExists { |
| 261 | ctx.WriteString("IF EXISTS ") |
| 262 | } |
| 263 | ctx.FormatName(string(node.Trigger)) |
| 264 | ctx.WriteString(" ON ") |
| 265 | ctx.FormatNode(node.Table) |
| 266 | if node.DropBehavior != DropDefault { |
| 267 | ctx.WriteString(" ") |
| 268 | ctx.WriteString(node.DropBehavior.String()) |
| 269 | } |
| 270 | } |
nothing calls this directly
no test coverage detected