MCPcopy Create free account
hub / github.com/auxten/postgresql-parser / EncodeTimeTZValue

Function EncodeTimeTZValue

pkg/util/encoding/encoding.go:1912–1915  ·  view source on GitHub ↗

EncodeTimeTZValue encodes a timetz.TimeTZ value with its value tag, appends it to the supplied buffer, and returns the final buffer.

(appendTo []byte, colID uint32, t timetz.TimeTZ)

Source from the content-addressed store, hash-verified

1910// EncodeTimeTZValue encodes a timetz.TimeTZ value with its value tag, appends it to
1911// the supplied buffer, and returns the final buffer.
1912func EncodeTimeTZValue(appendTo []byte, colID uint32, t timetz.TimeTZ) []byte {
1913 appendTo = EncodeValueTag(appendTo, colID, TimeTZ)
1914 return EncodeUntaggedTimeTZValue(appendTo, t)
1915}
1916
1917// EncodeUntaggedTimeTZValue encodes a time.Time value, appends it to the supplied buffer,
1918// and returns the final buffer.

Callers

nothing calls this directly

Calls 2

EncodeValueTagFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…