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

Method Format

pkg/sql/sem/tree/set.go:54–64  ·  view source on GitHub ↗

Format implements the NodeFormatter interface.

(ctx *FmtCtx)

Source from the content-addressed store, hash-verified

52
53// Format implements the NodeFormatter interface.
54func (node *SetClusterSetting) Format(ctx *FmtCtx) {
55 ctx.WriteString("SET CLUSTER SETTING ")
56 // Cluster setting names never contain PII and should be distinguished
57 // for feature tracking purposes.
58 ctx.WithFlags(ctx.flags & ^FmtAnonymize, func() {
59 ctx.FormatNameP(&node.Name)
60 })
61
62 ctx.WriteString(" = ")
63 ctx.FormatNode(node.Value)
64}
65
66// SetTransaction represents a SET TRANSACTION statement.
67type SetTransaction struct {

Callers

nothing calls this directly

Calls 3

WithFlagsMethod · 0.80
FormatNamePMethod · 0.80
FormatNodeMethod · 0.80

Tested by

no test coverage detected