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

Method PlanScan

pgtype/pgtype.go:173–173  ·  view source on GitHub ↗

PlanScan returns a ScanPlan for scanning a PostgreSQL value into a destination with the same type as target. If no plan can be found then nil is returned.

(m *Map, oid uint32, format int16, target any)

Source from the content-addressed store, hash-verified

171 // PlanScan returns a ScanPlan for scanning a PostgreSQL value into a destination with the same type as target. If
172 // no plan can be found then nil is returned.
173 PlanScan(m *Map, oid uint32, format int16, target any) ScanPlan
174
175 // DecodeDatabaseSQLValue returns src decoded into a value compatible with the sql.Scanner interface.
176 DecodeDatabaseSQLValue(m *Map, oid uint32, format int16, src []byte) (driver.Value, error)

Callers 15

ScanMethod · 0.65
NextMethod · 0.65
PlanScanMethod · 0.65
PlanScanMethod · 0.65
decodeBinaryMethod · 0.65
decodeTextMethod · 0.65
DecodeValueMethod · 0.65
planScanMethod · 0.65
codecScanFunction · 0.65
ScanMethod · 0.65
ScanMethod · 0.65
ScanMethod · 0.65

Implementers 15

ByteaCodecpgtype/bytea.go
Float8Codecpgtype/float8.go
BoolCodecpgtype/bool.go
DateCodecpgtype/date.go
BitsCodecpgtype/bits.go
NumericCodecpgtype/numeric.go
HstoreCodecpgtype/hstore.go
TimestampCodecpgtype/timestamp.go
MacaddrCodecpgtype/macaddr.go
Int2Codecpgtype/int.go
Int4Codecpgtype/int.go
Int8Codecpgtype/int.go

Calls

no outgoing calls

Tested by 3

mustParseNumericFunction · 0.52
TestRoundTripFunction · 0.52
BenchmarkHstoreScanFunction · 0.52