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

Method PlanEncode

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

PlanEncode returns an EncodePlan for encoding value into PostgreSQL format for oid and format. If no plan can be found then nil is returned.

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

Source from the content-addressed store, hash-verified

167 // PlanEncode returns an EncodePlan for encoding value into PostgreSQL format for oid and format. If no plan can be
168 // found then nil is returned.
169 PlanEncode(m *Map, oid uint32, format int16, value any) EncodePlan
170
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.

Callers 15

ValueMethod · 0.65
ValueMethod · 0.65
ValueMethod · 0.65
PlanEncodeMethod · 0.65
PlanEncodeMethod · 0.65
EncodeMethod · 0.65
EncodeMethod · 0.65
ValueMethod · 0.65
planEncodeMethod · 0.65
ValueMethod · 0.65
ValueMethod · 0.65
ValueMethod · 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

TestRoundTripFunction · 0.52
BenchmarkHstoreEncodeFunction · 0.52
BenchmarkHstoreScanFunction · 0.52