Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add conveniences to PSQLFrontendMessage #173

Merged
merged 3 commits into from
Sep 18, 2021

Conversation

fabianfett
Copy link
Collaborator

Motivation

We want to use the NIOSingleStepByteToMessageDecoder within the PSQLChannelHandler in the future. For this reason it is important that we will be able to decode PSQLFrontendMessages for tests in the future.

Changes

  • Rename protocol PSQLFrontendMessagePayloadEncodable to PSQLMessagePayloadEncodable
  • PSQLFrontendMessage.ID is now RawRepresentable

Result

Code that makes testing easier in the future.

Note: Please don't auto release this. Follow up prs incoming.

@fabianfett fabianfett requested a review from gwynne September 18, 2021 10:48
@gwynne gwynne added the enhancement New feature or request label Sep 18, 2021
Copy link
Member

@gwynne gwynne left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one style nit, otherwise looks great!

@fabianfett fabianfett merged commit 7331b52 into vapor:main Sep 18, 2021
@fabianfett fabianfett deleted the ff-messages branch September 18, 2021 12:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants