Class
PostgresMessageDecoder
final class PostgresMessageDecoder
Topics
Initializers
init(logger: Logger?)Creates a newPostgresMessageDecoder.
Instance Properties
var cumulationBuffer: ByteBuffer?SeeByteToMessageDecoder.var hasSeenFirstMessage: BoolIftrue, the server has asked for authentication.
Instance Methods
func decode(context: ChannelHandlerContext, buffer: inout ByteBuffer) throws -> DecodingStateSeeByteToMessageDecoder.func decodeLast(context: ChannelHandlerContext, buffer: inout ByteBuffer, seenEOF: Bool) throws -> DecodingStateDecode from aByteBufferwhen no more data is incoming and theByteToMessageDecoderis about to leave the pipeline.
Type Aliases
typealias InboundOutSeeByteToMessageDecoder.
Relationships
Conforms To
NIOCore.ByteToMessageDecoder
See Also
Deprecated APIs
protocol PostgresDatabasestruct PostgresDataprotocol PostgresDataConvertiblestruct PostgresQueryResultprotocol PostgresJSONCodableprotocol PostgresJSONBCodableclass PostgresMessageEncoderprotocol PostgresRequestProtocol to encapsulate a function call on the Postgres serverstruct PostgresMessageA frontend or backend Postgres message.protocol PostgresMessageTypetypealias PostgresFormatCodeclass PostgresListenContextContext for receiving NotificationResponse messages on a connection, used for PostgreSQL’sLISTEN/NOTIFYsupport.struct PreparedQueryclass SASLAuthenticationManagerprotocol SASLAuthenticationMechanismThe protocol to which all SASL mechanism implementations must conform. It is the responsibility of each individual implementation to provide an API for creating instances of itself which are able to retrieve information from the caller (such as usernames and passwords) by some mechanism.