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

Function codecScan

pgtype/pgtype.go:1169–1175  ·  view source on GitHub ↗
(codec Codec, m *Map, oid uint32, format int16, src []byte, dst any)

Source from the content-addressed store, hash-verified

1167var ErrScanTargetTypeChanged = errors.New("scan target type changed")
1168
1169func codecScan(codec Codec, m *Map, oid uint32, format int16, src []byte, dst any) error {
1170 scanPlan := codec.PlanScan(m, oid, format, dst)
1171 if scanPlan == nil {
1172 return fmt.Errorf("PlanScan did not find a plan")
1173 }
1174 return scanPlan.Scan(src, dst)
1175}
1176
1177func codecDecodeToTextFormat(codec Codec, m *Map, oid uint32, format int16, src []byte) (driver.Value, error) {
1178 if src == nil {

Callers 15

DecodeValueMethod · 0.85
DecodeValueMethod · 0.85
DecodeValueMethod · 0.85
DecodeValueMethod · 0.85
DecodeValueMethod · 0.85
DecodeValueMethod · 0.85
DecodeValueMethod · 0.85
DecodeValueMethod · 0.85
DecodeValueMethod · 0.85

Calls 2

PlanScanMethod · 0.65
ScanMethod · 0.65

Tested by

no test coverage detected