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

Method Format

pkg/sql/sem/tree/check.go:13–21  ·  view source on GitHub ↗
(ctx *FmtCtx)

Source from the content-addressed store, hash-verified

11}
12
13func (c *CheckExternalConnection) Format(ctx *FmtCtx) {
14 ctx.WriteString("CHECK EXTERNAL CONNECTION ")
15 ctx.FormatURI(c.URI)
16 if !c.Options.IsDefault() {
17 ctx.WriteString(" WITH OPTIONS (")
18 ctx.FormatNode(&c.Options)
19 ctx.WriteString(")")
20 }
21}
22
23var _ Statement = &CheckExternalConnection{}
24

Callers

nothing calls this directly

Calls 3

FormatURIMethod · 0.80
FormatNodeMethod · 0.80
IsDefaultMethod · 0.45

Tested by

no test coverage detected