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

Method Format

pkg/sql/sem/tree/revoke.go:33–40  ·  view source on GitHub ↗

Format implements the NodeFormatter interface.

(ctx *FmtCtx)

Source from the content-addressed store, hash-verified

31
32// Format implements the NodeFormatter interface.
33func (node *Revoke) Format(ctx *FmtCtx) {
34 ctx.WriteString("REVOKE ")
35 node.Privileges.Format(&ctx.Buffer)
36 ctx.WriteString(" ON ")
37 ctx.FormatNode(&node.Targets)
38 ctx.WriteString(" FROM ")
39 ctx.FormatNode(&node.Grantees)
40}
41
42// RevokeRole represents a REVOKE <role> statement.
43type RevokeRole struct {

Callers

nothing calls this directly

Calls 2

FormatNodeMethod · 0.80
FormatMethod · 0.65

Tested by

no test coverage detected