MCPcopy Create free account
hub / github.com/lib/pq / decode

Function decode

encode.go:54–63  ·  view source on GitHub ↗
(ps *parameterStatus, s []byte, typ oid.Oid, f format)

Source from the content-addressed store, hash-verified

52}
53
54func decode(ps *parameterStatus, s []byte, typ oid.Oid, f format) (any, error) {
55 switch f {
56 case formatBinary:
57 return binaryDecode(s, typ)
58 case formatText:
59 return textDecode(ps, s, typ)
60 default:
61 panic("unreachable")
62 }
63}
64
65func binaryDecode(s []byte, typ oid.Oid) (any, error) {
66 switch typ {

Callers 3

TestDecodeFunction · 0.85
BenchmarkDecodeFunction · 0.85
NextMethod · 0.85

Calls 2

binaryDecodeFunction · 0.85
textDecodeFunction · 0.85

Tested by 2

TestDecodeFunction · 0.68
BenchmarkDecodeFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…