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

Method Format

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

Format implements the NodeFormatter interface.

(ctx *FmtCtx)

Source from the content-addressed store, hash-verified

265
266// Format implements the NodeFormatter interface.
267func (d *DBool) Format(ctx *FmtCtx) {
268 if ctx.HasFlags(fmtPgwireFormat) {
269 if bool(*d) {
270 ctx.WriteByte('t')
271 } else {
272 ctx.WriteByte('f')
273 }
274 return
275 }
276 ctx.WriteString(strconv.FormatBool(bool(*d)))
277}
278
279// Size implements the Datum interface.
280func (d *DBool) Size() uintptr {

Callers

nothing calls this directly

Calls 2

WriteStringMethod · 0.80
HasFlagsMethod · 0.45

Tested by

no test coverage detected