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

Method Format

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

Format implements the NodeFormatter interface.

(ctx *FmtCtx)

Source from the content-addressed store, hash-verified

929
930// Format implements the NodeFormatter interface.
931func (node *ShowLastQueryStatistics) Format(ctx *FmtCtx) {
932 ctx.WriteString("SHOW LAST QUERY STATISTICS RETURNING ")
933 // The column names for this statement never contain PII and should
934 // be distinguished for feature tracking purposes.
935 ctx.WithFlags(ctx.flags & ^FmtAnonymize & ^FmtMarkRedactionNode, func() {
936 ctx.FormatNode(&node.Columns)
937 })
938}
939
940// ShowFullTableScans represents a SHOW FULL TABLE SCANS statement.
941type ShowFullTableScans struct {

Callers

nothing calls this directly

Calls 2

WithFlagsMethod · 0.80
FormatNodeMethod · 0.80

Tested by

no test coverage detected