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

Method Format

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

Format implements the NodeFormatter interface.

(ctx *FmtCtx)

Source from the content-addressed store, hash-verified

893
894// Format implements the NodeFormatter interface.
895func (node *ShowSyntax) Format(ctx *FmtCtx) {
896 ctx.WriteString("SHOW SYNTAX ")
897 if ctx.flags.HasFlags(FmtAnonymize) || ctx.flags.HasFlags(FmtHideConstants) {
898 ctx.WriteString("'_'")
899 } else {
900 ctx.WriteString(lexbase.EscapeSQLString(node.Statement))
901 }
902}
903
904// ShowTransactionStatus represents a SHOW TRANSACTION STATUS statement.
905type ShowTransactionStatus struct {

Callers

nothing calls this directly

Calls 2

EscapeSQLStringFunction · 0.92
HasFlagsMethod · 0.45

Tested by

no test coverage detected