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

Method Format

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

Format implements the NodeFormatter interface.

(ctx *FmtCtx)

Source from the content-addressed store, hash-verified

45
46// Format implements the NodeFormatter interface.
47func (node *ShowClusterSetting) Format(ctx *FmtCtx) {
48 ctx.WriteString("SHOW CLUSTER SETTING ")
49 // Cluster setting names never contain PII and should be distinguished
50 // for feature tracking purposes.
51 ctx.WithFlags(ctx.flags & ^FmtAnonymize & ^FmtMarkRedactionNode, func() {
52 ctx.FormatNameP(&node.Name)
53 })
54}
55
56// ShowClusterSettingList represents a SHOW [ALL|PUBLIC] CLUSTER SETTINGS statement.
57type ShowClusterSettingList struct {

Callers

nothing calls this directly

Calls 2

WithFlagsMethod · 0.80
FormatNamePMethod · 0.80

Tested by

no test coverage detected