MCPcopy Create free account
hub / github.com/cockroachdb/cockroachdb-parser / Format

Method Format

pkg/sql/sem/tree/datum.go:2571–2581  ·  view source on GitHub ↗

Format implements the NodeFormatter interface.

(ctx *FmtCtx)

Source from the content-addressed store, hash-verified

2569
2570// Format implements the NodeFormatter interface.
2571func (d *DTimeTZ) Format(ctx *FmtCtx) {
2572 f := ctx.flags
2573 bareStrings := f.HasFlags(FmtFlags(lexbase.EncBareStrings))
2574 if !bareStrings {
2575 ctx.WriteByte('\'')
2576 }
2577 ctx.Write(PGWireFormatTimeTZ(d.TimeTZ, ctx.scratch[:0]))
2578 if !bareStrings {
2579 ctx.WriteByte('\'')
2580 }
2581}
2582
2583// Size implements the Datum interface.
2584func (d *DTimeTZ) Size() uintptr {

Callers

nothing calls this directly

Calls 4

FmtFlagsTypeAlias · 0.85
PGWireFormatTimeTZFunction · 0.85
WriteMethod · 0.80
HasFlagsMethod · 0.45

Tested by

no test coverage detected