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

Method Format

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

Format implements the NodeFormatter interface.

(ctx *FmtCtx)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

WithFlagsMethod · 0.80
FormatNamePMethod · 0.80

Tested by

no test coverage detected