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

Implement tokio_rusqlite::Connection: From<rusqlite::Connection> #33

Merged
merged 3 commits into from
Aug 20, 2024

Conversation

oscartbeaumont
Copy link
Contributor

Allow converting an existing rusqlite::Connection into a tokio_rusqlite::Connection.

Why?

I'm using Refinery which doesn't support tokio_rusqlite but it does support rusqlite. So I would like to:

  • Construct a rusqlite::Connection
  • Run migrations with Refinery
  • tokio_rusqlite::Connection::from(...) to convert the connection to be async for the rest of my apps lifetime.

@oscartbeaumont oscartbeaumont requested a review from abs0luty as a code owner June 23, 2024 08:30
@oscartbeaumont oscartbeaumont changed the title Implement Connection::from Implement tokio_rusqlite::Connection: From<rusqlite::Connection> Jun 23, 2024
@abs0luty abs0luty merged commit d101d1c into programatik29:master Aug 20, 2024
7 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