Skip to content

Add tokio_postgres::GenericClient #542

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 2 commits into from
Jan 3, 2020
Merged

Add tokio_postgres::GenericClient #542

merged 2 commits into from
Jan 3, 2020

Conversation

sfackler
Copy link
Owner

@sfackler sfackler commented Jan 3, 2020

We have to make the trait methods differ from the normal methods a bit
by adding Sync + Send bounds to the ToStatement parameter which is a bit
unfortunate, but necessary until GATs makes async_trait unnecessary.

Closes #537

We have to make the trait methods differ from the normal methods a bit
by adding Sync + Send bounds to the ToStatement parameter which is a bit
unfortunate, but necessary until GATs async_trait unnecessary.

Closes #357
async_trait requires this to be explicit
@benesch
Copy link
Contributor

benesch commented Jan 3, 2020

s/Closes #357/Closes #537/, I think?

@sfackler
Copy link
Owner Author

sfackler commented Jan 3, 2020

Yep, thanks!

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.

Adding a generic connection trait to tokio-postgres
2 participants