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

Function EncodeTimeValue

pkg/util/encoding/encoding.go:1898–1901  ·  view source on GitHub ↗

EncodeTimeValue encodes a time.Time value with its value tag, appends it to the supplied buffer, and returns the final buffer.

(appendTo []byte, colID uint32, t time.Time)

Source from the content-addressed store, hash-verified

1896// EncodeTimeValue encodes a time.Time value with its value tag, appends it to
1897// the supplied buffer, and returns the final buffer.
1898func EncodeTimeValue(appendTo []byte, colID uint32, t time.Time) []byte {
1899 appendTo = EncodeValueTag(appendTo, colID, Time)
1900 return EncodeUntaggedTimeValue(appendTo, t)
1901}
1902
1903// EncodeUntaggedTimeValue encodes a time.Time value, appends it to the supplied buffer,
1904// and returns the final buffer.

Callers

nothing calls this directly

Calls 2

EncodeValueTagFunction · 0.85
EncodeUntaggedTimeValueFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…