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

Method Format

pkg/sql/sem/tree/prepare.go:51–56  ·  view source on GitHub ↗

Format implements the NodeFormatter interface.

(ctx *FmtCtx)

Source from the content-addressed store, hash-verified

49
50// Format implements the NodeFormatter interface.
51func (node *CannedOptPlan) Format(ctx *FmtCtx) {
52 // This node can only be used as the AST for a Prepare statement of the form:
53 // PREPARE name AS OPT PLAN '...').
54 ctx.WriteString("OPT PLAN ")
55 ctx.WriteString(lex.EscapeSQLString(node.Plan))
56}
57
58// Execute represents an EXECUTE statement.
59type Execute struct {

Callers

nothing calls this directly

Calls 1

EscapeSQLStringFunction · 0.92

Tested by

no test coverage detected