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

Function translateEOFtoErrUnexpectedEOF

pgproto3/frontend.go:303–308  ·  view source on GitHub ↗
(err error)

Source from the content-addressed store, hash-verified

301}
302
303func translateEOFtoErrUnexpectedEOF(err error) error {
304 if err == io.EOF {
305 return io.ErrUnexpectedEOF
306 }
307 return err
308}
309
310// Receive receives a message from the backend. The returned message is only valid until the next call to Receive.
311func (f *Frontend) Receive() (BackendMessage, error) {

Callers 3

ReceiveMethod · 0.85
ReceiveStartupMessageMethod · 0.85
ReceiveMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected