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

Method Format

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

Format implements the NodeFormatter interface.

(ctx *FmtCtx)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

WithFlagsMethod · 0.80
FormatNamePMethod · 0.80

Tested by

no test coverage detected