Currently we use an explicit PostgresFrontendMessage when we encode those messages into the outgoing ByteBuffer. However this can be wasteful if we need to transform the data that we have to explicitly match the PostgresFrontendMessage type. We should instead have methods on the Encoder that match the message types. This patch achieves exactly this.
Currently we use an explicit
PostgresFrontendMessage
when we encode those messages into the outgoing ByteBuffer. However this can be wasteful if we need to transform the data that we have to explicitly match thePostgresFrontendMessage
type. We should instead have methods on the Encoder that match the message types. This patch achieves exactly this.