package
0.0.0-20231025143031-ac1779c1cb7f
Repository: https://github.com/imneov/postgrecrd.git
Documentation: pkg.go.dev
# Functions
EncodeBoolean returns a string value ("on"/"off") representing the given boolean value.
NewInsufficientData constructs a new error message wrapping the ErrInsufficientData type with additional metadata.
NewMessageSizeExceeded constructs a new error message wrapping the ErrMaxMessageSizeExceeded type with additional metadata.
NewMissingNulTerminator constructs a new error message wrapping the ErrMissingNulTerminator type with additional metadata.
NewReader constructs a new Postgres wire buffer for the given io.Reader.
NewWriter constructs a new Postgres buffered message writer for the given io.Writer.
UnwrapMessageSizeExceeded attempts to unwrap the given error as MessageSizeExceeded.
# Constants
16777216 bytes.
MaxPreparedStatementArgs is the maximum number of arguments a prepared statement can have when prepared via the Postgres wire protocol.
PreparePortal represents a portal.
PrepareStatement represents a prepared statement.
http://www.postgresql.org/docs/current/static/protocol-error-fields.html.
http://www.postgresql.org/docs/current/static/protocol-error-fields.html.
http://www.postgresql.org/docs/current/static/protocol-error-fields.html.
http://www.postgresql.org/docs/current/static/protocol-error-fields.html.
http://www.postgresql.org/docs/current/static/protocol-error-fields.html.
http://www.postgresql.org/docs/current/static/protocol-error-fields.html.
http://www.postgresql.org/docs/current/static/protocol-error-fields.html.
http://www.postgresql.org/docs/current/static/protocol-error-fields.html.
http://www.postgresql.org/docs/current/static/protocol-error-fields.html.
# Variables
ErrInsufficientData is thrown when there is insufficient data available inside the given message to unmarshal into a given type.
ErrMessageSizeExceeded is thrown when the maximum message size is exceeded.
ErrMissingNulTerminator is thrown when no NUL terminator is found when interperating a message property as a string.
# Structs
MessageSizeExceeded represents a error implementation which could be used to indicate that the message size limit has been exceeded.
Reader provides a convenient way to read pgwire protocol messages.
Writer provides a convenient way to write pgwire protocol messages.
# Interfaces
BufferedReader extended io.Reader with some convenience methods.
# Type aliases
PrepareType represents a subtype for prepare messages.go:generate stringer -type=PrepareType.
ServerErrFieldType represents the error fields.go:generate stringer -type=ServerErrFieldType.