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

Method Encode

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

Encode appends the encoded bytes of value to buf. If value is the SQL value NULL then append nothing and return (nil, nil). The caller of Encode is responsible for writing the correct NULL value or the length of the data written.

(value any, buf []byte)

Source from the content-addressed store, hash-verified

360 // (nil, nil). The caller of Encode is responsible for writing the correct NULL value or the length of the data
361 // written.
362 Encode(value any, buf []byte) (newBuf []byte, err error)
363}
364
365// ScanPlan is a precompiled plan to scan into a type of destination.

Callers 15

EncodeMethod · 0.95
EncodeMethod · 0.95
AppendValueMethod · 0.95
AppendValueMethod · 0.95
EncodeMethod · 0.95
EncodeMethod · 0.95
convertSimpleArgumentFunction · 0.65
encodeCopyValueFunction · 0.65

Implementers 15

CancelRequestpgproto3/cancel_request.go
Querypgproto3/query.go
ErrorResponsepgproto3/error_response.go
ParameterDescriptionpgproto3/parameter_description.go
Closepgproto3/close.go
StartupMessagepgproto3/startup_message.go
CopyOutResponsepgproto3/copy_out_response.go
ParseCompletepgproto3/parse_complete.go
RowDescriptionpgproto3/row_description.go
BindCompletepgproto3/bind_complete.go
DataRowpgproto3/data_row.go
NegotiateProtocolVersionpgproto3/negotiate_protocol_version.go

Calls

no outgoing calls