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

Function DecodeTimeTZValue

pkg/util/encoding/encoding.go:2158–2164  ·  view source on GitHub ↗

DecodeTimeTZValue decodes a value encoded by EncodeTimeTZValue.

(b []byte)

Source from the content-addressed store, hash-verified

2156
2157// DecodeTimeTZValue decodes a value encoded by EncodeTimeTZValue.
2158func DecodeTimeTZValue(b []byte) (remaining []byte, t timetz.TimeTZ, err error) {
2159 b, err = decodeValueTypeAssert(b, TimeTZ)
2160 if err != nil {
2161 return b, timetz.TimeTZ{}, err
2162 }
2163 return DecodeUntaggedTimeTZValue(b)
2164}
2165
2166// DecodeUntaggedTimeTZValue decodes a value encoded by EncodeUntaggedTimeTZValue.
2167func DecodeUntaggedTimeTZValue(b []byte) (remaining []byte, t timetz.TimeTZ, err error) {

Callers 1

PrettyPrintValueEncodedFunction · 0.85

Calls 2

decodeValueTypeAssertFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…