MCPcopy
hub / github.com/jackc/pgx / Scan

Method Scan

pgtype/bytea.go:212–219  ·  view source on GitHub ↗
(src []byte, dst any)

Source from the content-addressed store, hash-verified

210type scanPlanTextByteaToBytesScanner struct{}
211
212func (scanPlanTextByteaToBytesScanner) Scan(src []byte, dst any) error {
213 scanner := (dst).(BytesScanner)
214 buf, err := decodeHexBytea(src)
215 if err != nil {
216 return err
217 }
218 return scanner.ScanBytes(buf)
219}
220
221func decodeHexBytea(src []byte) ([]byte, error) {
222 if src == nil {

Callers

nothing calls this directly

Calls 2

decodeHexByteaFunction · 0.85
ScanBytesMethod · 0.65

Tested by

no test coverage detected