Skip to content

Extract PSQLRow #177

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

Merged
merged 3 commits into from
Sep 18, 2021
Merged

Extract PSQLRow #177

merged 3 commits into from
Sep 18, 2021

Conversation

fabianfett
Copy link
Collaborator

Motivation

In #135, I did some naming things just wrong. PSQLRows is a stupid name. We should name it PSQLRowStream. PSQLRows.Row is a stupid name for a single table row. We should name it PSQLRow. Transforming an incoming data row packet to a [PSQLData] array early is expensive and stupid. Let's not do this anymore.

Changes

Consume this pr in the three change steps (separate commit for each):

  1. Extract PSQLRows.Row to PSQLRows (Got its own file). Stop the early [PSQLData] madness.
  2. Rename PSQLRows to PSQLRowStream
  3. Fix naming in integration tests to match PSQLRowStream

Result

I feel less embarrassed about my code. It might be a little faster.

@fabianfett fabianfett added enhancement New feature or request part of a series labels Sep 18, 2021
@fabianfett fabianfett requested a review from gwynne September 18, 2021 13:27
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.

LGTM

@fabianfett fabianfett merged commit 3c29758 into vapor:main Sep 18, 2021
@fabianfett fabianfett deleted the ff-extract-psqlrow branch September 18, 2021 14:56
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