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

The sqlx dose not support with sync style ? #1221

Closed
toplinuxsir opened this issue May 12, 2021 · 3 comments
Closed

The sqlx dose not support with sync style ? #1221

toplinuxsir opened this issue May 12, 2021 · 3 comments

Comments

@toplinuxsir
Copy link

The sqlx dose not support with sync style ?
Any sync example code ?
Thanks!

@abonander
Copy link
Collaborator

SQLx right now is async-only, if you want to run it in blocking code you need to use something like Runtime::block_on() from Tokio.

In 0.6 we're introducing a blocking API, you can follow #1163 for progress on that release.

@ShayBox
Copy link

ShayBox commented Aug 6, 2023

It doesn't appear this was done in 0.6 or 0.7, it could probably be achieved using maybe_async

@madser123
Copy link

Will this ever be a thing for Sqlx?

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

No branches or pull requests

4 participants