MCPcopy Create free account
hub / github.com/bradfitz/go-sql-test / EncodeBinary

Method EncodeBinary

src/github.com/jackc/pgx/values.go:77–77  ·  view source on GitHub ↗

EncodeBinary writes the binary value to w. EncodeBinary MUST check oid to see if the parameter data type is compatible. If this is not done, the PostgreSQL server may detect the error if the expected data size or format of the encoded data does not match. But if the encoded data is a valid represen

(w *WriteBuf, oid Oid)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

sendPreparedQueryMethod · 0.65

Implementers 7

NullFloat32src/github.com/jackc/pgx/values.go
NullFloat64src/github.com/jackc/pgx/values.go
NullInt16src/github.com/jackc/pgx/values.go
NullInt32src/github.com/jackc/pgx/values.go
NullInt64src/github.com/jackc/pgx/values.go
NullBoolsrc/github.com/jackc/pgx/values.go
NullTimesrc/github.com/jackc/pgx/values.go

Calls

no outgoing calls

Tested by

no test coverage detected