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

Method Format

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

Format implements the NodeFormatter interface.

(ctx *FmtCtx)

Source from the content-addressed store, hash-verified

5299
5300// Format implements the NodeFormatter interface.
5301func (d *DVoid) Format(ctx *FmtCtx) {
5302 buf, f := &ctx.Buffer, ctx.flags
5303 if !f.HasFlags(fmtRawStrings) {
5304 // void is an empty string.
5305 lexbase.EncodeSQLStringWithFlags(buf, "", f.EncodeFlags())
5306 }
5307}
5308
5309// Size implements the Datum interface.
5310func (d *DVoid) Size() uintptr {

Callers

nothing calls this directly

Calls 3

EncodeSQLStringWithFlagsFunction · 0.92
EncodeFlagsMethod · 0.80
HasFlagsMethod · 0.45

Tested by

no test coverage detected