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

Method Format

pkg/sql/sem/tree/show.go:30–37  ·  view source on GitHub ↗

Format implements the NodeFormatter interface.

(ctx *FmtCtx)

Source from the content-addressed store, hash-verified

28
29// Format implements the NodeFormatter interface.
30func (node *ShowVar) Format(ctx *FmtCtx) {
31 ctx.WriteString("SHOW ")
32 // Session var names never contain PII and should be distinguished
33 // for feature tracking purposes.
34 ctx.WithFlags(ctx.flags & ^FmtAnonymize, func() {
35 ctx.FormatNameP(&node.Name)
36 })
37}
38
39// ShowClusterSetting represents a SHOW CLUSTER SETTING statement.
40type ShowClusterSetting struct {

Callers

nothing calls this directly

Calls 2

WithFlagsMethod · 0.80
FormatNamePMethod · 0.80

Tested by

no test coverage detected