MCPcopy Index your code
hub / github.com/lib/pq / binaryEncode

Function binaryEncode

encode.go:17–24  ·  view source on GitHub ↗
(x any)

Source from the content-addressed store, hash-verified

15)
16
17func binaryEncode(x any) ([]byte, error) {
18 switch v := x.(type) {
19 case []byte:
20 return v, nil
21 default:
22 return encode(x, oid.T_unknown)
23 }
24}
25
26func encode(x any, pgtypOid oid.Oid) ([]byte, error) {
27 switch v := x.(type) {

Callers 1

sendBinaryParametersMethod · 0.85

Calls 1

encodeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…