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

Method Format

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

Format implements the NodeFormatter interface.

(ctx *FmtCtx)

Source from the content-addressed store, hash-verified

959
960// Format implements the NodeFormatter interface.
961func (d *DTimeTZ) Format(ctx *FmtCtx) {
962 f := ctx.flags
963 bareStrings := f.HasFlags(FmtFlags(lex.EncBareStrings))
964 if !bareStrings {
965 ctx.WriteByte('\'')
966 }
967 ctx.WriteString(d.TimeTZ.String())
968 if !bareStrings {
969 ctx.WriteByte('\'')
970 }
971}
972
973// Size implements the Datum interface.
974func (d *DTimeTZ) 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