Skip to content
New issue

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

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

Already on GitHub? # to your account

Use resources for Postgres API #1886

Merged
merged 2 commits into from
Oct 16, 2023
Merged

Use resources for Postgres API #1886

merged 2 commits into from
Oct 16, 2023

Conversation

rylev
Copy link
Collaborator

@rylev rylev commented Oct 12, 2023

In much the same vane as #1873 - this changes the postgres interface to use a connection oriented resource. Other than that the API is largely the same with the minor exception of removing the "success" variant on the error type (which was renamed from pg-error to error).

@rylev rylev requested review from lann and dicej October 12, 2023 11:49
Copy link
Collaborator

@lann lann left a comment

Choose a reason for hiding this comment

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

Mostly non-blocking nit/style comments. other-error vs other is the only one I really care about

crates/outbound-pg/src/lib.rs Outdated Show resolved Hide resolved
crates/outbound-pg/src/lib.rs Outdated Show resolved Hide resolved
crates/outbound-pg/src/lib.rs Show resolved Hide resolved
wit/preview2/postgres.wit Outdated Show resolved Hide resolved
@rylev rylev force-pushed the postgres-resources branch from 84f9823 to bdf560f Compare October 13, 2023 07:24
@rylev rylev force-pushed the postgres-resources branch 3 times, most recently from 55279b2 to 2f56bf2 Compare October 14, 2023 08:41
rylev added 2 commits October 16, 2023 15:51
Signed-off-by: Ryan Levick <ryan.levick@fermyon.com>
Signed-off-by: Ryan Levick <ryan.levick@fermyon.com>
@rylev rylev force-pushed the postgres-resources branch from 2f56bf2 to 4573dce Compare October 16, 2023 13:51
@rylev rylev merged commit e2c844a into main Oct 16, 2023
@rylev rylev deleted the postgres-resources branch October 16, 2023 15:15
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants