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

Method Format

pkg/sql/sem/tree/datum.go:5929–5936  ·  view source on GitHub ↗

Format implements the NodeFormatter interface.

(ctx *FmtCtx)

Source from the content-addressed store, hash-verified

5927
5928// Format implements the NodeFormatter interface.
5929func (d *DOidWrapper) Format(ctx *FmtCtx) {
5930 if d.Oid == oid.T_refcursor {
5931 wrapped := MustBeDString(d.Wrapped)
5932 wrapped.Format(ctx)
5933 return
5934 }
5935 ctx.FormatNode(d.Wrapped)
5936}
5937
5938// Size implements the Datum interface.
5939func (d *DOidWrapper) Size() uintptr {

Callers

nothing calls this directly

Calls 3

MustBeDStringFunction · 0.85
FormatNodeMethod · 0.80
FormatMethod · 0.65

Tested by

no test coverage detected