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

Function PGWireFormatTime

pkg/sql/sem/tree/pgwire_encode.go:316–318  ·  view source on GitHub ↗

PGWireFormatTime formats t into a format lib/pq understands, appending to the provided tmp buffer and reallocating if needed. The function will then return the resulting buffer.

(t timeofday.TimeOfDay, tmp []byte)

Source from the content-addressed store, hash-verified

314// provided tmp buffer and reallocating if needed. The function will then return
315// the resulting buffer.
316func PGWireFormatTime(t timeofday.TimeOfDay, tmp []byte) []byte {
317 return t.AppendFormat(tmp)
318}
319
320// PGWireFormatTimeTZ formats t into a format lib/pq understands, appending to the
321// provided tmp buffer and reallocating if needed. The function will then return

Callers 1

FormatMethod · 0.85

Calls 1

AppendFormatMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…