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

Method Format

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

Format implements the NodeFormatter interface.

(ctx *FmtCtx)

Source from the content-addressed store, hash-verified

741
742// Format implements the NodeFormatter interface.
743func (d *DIPAddr) Format(ctx *FmtCtx) {
744 f := ctx.flags
745 bareStrings := f.HasFlags(FmtFlags(lex.EncBareStrings))
746 if !bareStrings {
747 ctx.WriteByte('\'')
748 }
749 ctx.WriteString(d.IPAddr.String())
750 if !bareStrings {
751 ctx.WriteByte('\'')
752 }
753}
754
755// Size implements the Datum interface.
756func (d *DIPAddr) 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