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

Method Format

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

Format implements the NodeFormatter interface.

(ctx *FmtCtx)

Source from the content-addressed store, hash-verified

830
831// Format implements the NodeFormatter interface.
832func (d *DDate) Format(ctx *FmtCtx) {
833 f := ctx.flags
834 bareStrings := f.HasFlags(FmtFlags(lex.EncBareStrings))
835 if !bareStrings {
836 ctx.WriteByte('\'')
837 }
838 d.Date.Format(&ctx.Buffer)
839 if !bareStrings {
840 ctx.WriteByte('\'')
841 }
842}
843
844// Size implements the Datum interface.
845func (d *DDate) Size() uintptr {

Callers

nothing calls this directly

Calls 3

FmtFlagsTypeAlias · 0.85
FormatMethod · 0.65
HasFlagsMethod · 0.45

Tested by

no test coverage detected