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

feat: Add diesel-async support for shuttle-shared-db #1664

Merged
merged 2 commits into from
Mar 18, 2024

Conversation

aumetra
Copy link
Contributor

@aumetra aumetra commented Mar 5, 2024

Description of change

This is the upstreaming of shuttle-diesel-async, it adds support to output diesel-async resources from #[shuttle_shared_db::Postgres].

Supported resources are:

  • diesel_async::AsyncPgConnection
  • diesel_async::pooled_connection::bb8::Pool (for the above mentioned AsyncPgConnection)
  • diesel_async::pooled_connection::deadpool::Pool (for the above mentioned AsyncPgConnection)

How has this been tested? (if applicable)

This is essentially 1:1 the code upstreamed from the repository, the code was used by me in a few projects and has been used by the community as well.

@aumetra aumetra changed the title Add diesel-async support for shuttle-shared-db feat: Add diesel-async support for shuttle-shared-db Mar 5, 2024
@jonaro00
Copy link
Member

jonaro00 commented Mar 7, 2024

Thanks! Can you add variants for the new feature flags here?

feature_flags = array "-F mongodb" "-F postgres" "-F postgres,sqlx" "-F postgres,sqlx-native-tls"

Doing so adds them to CI checks

@aumetra
Copy link
Contributor Author

aumetra commented Mar 7, 2024

Done. Seems like the shuttle-resource-recorder task is a lil flakey

@jonaro00 jonaro00 merged commit cd5476c into shuttle-hq:main Mar 18, 2024
29 of 30 checks passed
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.

2 participants