package
0.1.1-alpha07
Repository: https://github.com/stackql/psql-wire.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
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.

# Interfaces

BufferedReader extended io.Reader with some convenience methods.
Reader provides a convenient way to read pgwire protocol messages.
Writer provides a convenient way to write pgwire protocol messages.

# Type aliases

PrepareType represents a subtype for prepare messages.go:generate stringer -type=PrepareType.
ServerErrFieldType represents the error fields.go:generate stringer -type=ServerErrFieldType.