MCPcopy Create free account
hub / github.com/dolthub/doltgresql / Format

Method Format

postgres/parser/sem/tree/datum.go:710–720  ·  view source on GitHub ↗

Format implements the NodeFormatter interface.

(ctx *FmtCtx)

Source from the content-addressed store, hash-verified

708
709// Format implements the NodeFormatter interface.
710func (d *DUuid) Format(ctx *FmtCtx) {
711 f := ctx.flags
712 bareStrings := f.HasFlags(FmtFlags(lex.EncBareStrings))
713 if !bareStrings {
714 ctx.WriteByte('\'')
715 }
716 ctx.WriteString(d.UUID.String())
717 if !bareStrings {
718 ctx.WriteByte('\'')
719 }
720}
721
722// Size implements the Datum interface.
723func (d *DUuid) Size() uintptr {

Callers

nothing calls this directly

Calls 4

FmtFlagsTypeAlias · 0.85
WriteStringMethod · 0.80
StringMethod · 0.65
HasFlagsMethod · 0.45

Tested by

no test coverage detected