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

Method Format

pkg/sql/sem/tree/export.go:19–31  ·  view source on GitHub ↗

Format implements the NodeFormatter interface.

(ctx *FmtCtx)

Source from the content-addressed store, hash-verified

17
18// Format implements the NodeFormatter interface.
19func (node *Export) Format(ctx *FmtCtx) {
20 ctx.WriteString("EXPORT INTO ")
21 ctx.WriteString(node.FileFormat)
22 ctx.WriteString(" ")
23 ctx.FormatURI(node.File)
24 if node.Options != nil {
25 ctx.WriteString(" WITH OPTIONS(")
26 ctx.FormatNode(&node.Options)
27 ctx.WriteString(")")
28 }
29 ctx.WriteString(" FROM ")
30 ctx.FormatNode(node.Query)
31}

Callers

nothing calls this directly

Calls 2

FormatURIMethod · 0.80
FormatNodeMethod · 0.80

Tested by

no test coverage detected