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 PSQLError debugDescription #372

Merged
merged 13 commits into from
Jun 9, 2023
Merged

Conversation

gwynne
Copy link
Member

@gwynne gwynne commented Jun 2, 2023

Fixes #354, #380. Continues work from #356 and #360.

Requires minor version bump (adds new public API in the form of protocol conformances).

fabianfett and others added 3 commits June 2, 2023 05:46
…ance to PostgresQuery, PostgresBindings.Metadata, and PostgresBindings.
…ror.debugDescription`. Remove workaround for missing ByteBuffer conformance (it's not missing anymore).
Copy link
Collaborator

@fabianfett fabianfett left a comment

Choose a reason for hiding this comment

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

Looks great. Now we need some tests!

Tests/IntegrationTests/AsyncTests.swift Outdated Show resolved Hide resolved
…ror descriptions. Several tweaks to PostgresQuery and PostgresBindings descriptions to make them a bit less unwieldy, since devs are likely to see them a lot even if end-users don't.
@codecov-commenter
Copy link

codecov-commenter commented Jun 4, 2023

Codecov Report

Merging #372 (b172872) into main (fcb2e66) will increase coverage by 1.36%.
The diff coverage is 67.16%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #372      +/-   ##
==========================================
+ Coverage   42.98%   44.35%   +1.36%     
==========================================
  Files         118      118              
  Lines        8243     8629     +386     
==========================================
+ Hits         3543     3827     +284     
- Misses       4700     4802     +102     
Impacted Files Coverage Δ
Sources/PostgresNIO/Data/PostgresDataType.swift 56.19% <54.91%> (-4.19%) ⬇️
Sources/PostgresNIO/New/PostgresQuery.swift 78.51% <84.05%> (+4.54%) ⬆️
Sources/PostgresNIO/New/PSQLError.swift 75.27% <88.37%> (+20.48%) ⬆️

@gwynne gwynne requested a review from fabianfett June 4, 2023 04:35
Copy link
Collaborator

@fabianfett fabianfett left a comment

Choose a reason for hiding this comment

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

Thanks for the progress on this. A few comments

Sources/PostgresNIO/New/PostgresQuery.swift Outdated Show resolved Hide resolved
Sources/PostgresNIO/New/PostgresQuery.swift Outdated Show resolved Hide resolved
@fabianfett fabianfett merged commit 061a083 into main Jun 9, 2023
@fabianfett fabianfett deleted the ff-PSQLError-DebugDescription branch June 9, 2023 13:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make the PSQLError description more useful
3 participants