Skip to content

How to use SyncConnectionWrapper from an existing sync connection (PooledConnection) #221

Answered by weiznich
vincent-herlemont asked this question in Q&A
Discussion options

You must be logged in to vote

This is expected as SyncConnectionWrapper expects to take ownership of the connection. If you provide only a mutable reference that's not possible.

Additionally this only supports the plain SqliteConnection type for now. For any other connection type additional trait implementations in diesel are required.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by vincent-herlemont
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants