MCPcopy Create free account
hub / github.com/cockroachdb/cockroachdb-parser / Format

Method Format

pkg/sql/sem/tree/create_trigger.go:258–270  ·  view source on GitHub ↗

Format implements the NodeFormatter interface.

(ctx *FmtCtx)

Source from the content-addressed store, hash-verified

256
257// Format implements the NodeFormatter interface.
258func (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}

Callers

nothing calls this directly

Calls 3

FormatNameMethod · 0.80
FormatNodeMethod · 0.80
StringMethod · 0.65

Tested by

no test coverage detected