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

Allow the Tokio runtime for SQLx #25

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

CyrusAlbright
Copy link

It looks like recently some changes had been made to move away from async_std in this library, but it still didn't work for me using Tokio because the Cargo.toml only had options for SQLx to be run with async_std. Unfortunately, allowing Tokio means moving to SQLx's features system, which will break backwards compatibility, but it will be worth it to complete the move away from async_std.

The only functional change made here is exposing SQLx's runtime and TLS features combinations to allow for any configuration. In terms of versioning, I just changed it from 0.4.0 to 0.4.1 but since this is not backwards compatible it might be more suitable to change it to 0.5.0. Technically it shouldn't matter much according to semantic versioning because since this is pre-1.0.0 the API isn't considered public and hence anything can be subject to change.

Either way, this change is very minimal, so just a quick yes or no and an explanation should be all. Thanks.

@raymclee
Copy link

raymclee commented Aug 5, 2021

is this going to merge any soon?

@Madoshakalaka
Copy link

Love this

@rich-murphey
Copy link

This would be very helpful. I'm using the CyrusAlbright:main fork and it seems to work well.

@Outurnate
Copy link

+1 for this. My fork also bumps the dependency versions, if you need it

Iron-E added a commit to Iron-E/winvoice-server that referenced this pull request May 27, 2023
This is because I have to implement my own `async-session` store for
SQLx, since jbr/async-sqlx-session#25 hasn't been merged for ~2 years
and I don't want to wait to keep writing this project.
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.

5 participants