Adapters to other popular frameworks' "Connection" equivilents #3938
Replies: 1 comment
-
Generally speaking it's possible to implement Now for sqlite the situation is more complicated. Due to how sqlite work and how diesel evolved over the years we sticked with access by libsqlite3-sys directly instead of using rusqlite. That means we access quite a lot of the really low level details to perform various optimizations and to get things right. That makes it really hard to replace the existing implementation with something else. That written I'm not generally opposed in accepting PR's that slowly change it to a rusqlite based approach as long as that does not regress performance and as long as that does not couple our public API to their public API. |
Beta Was this translation helpful? Give feedback.
-
As I've mentioned in other posts/Q's I'm trying to retrofit Diesel into a larger app which makes heavy use of 'rusqlite' kinda all over the place. One thing that would make this a lot easier is a way to use rusqlite's
Connection
as a backing connection in diesel, so that an open connection could be attached to and refactored, to avoid having to change everything at once.I've looked a little at how new connection's are written, but I'm curious if there's an easier way than basically copying the entire sqlite connection and replacing all low-level calls with calls via rusqlite?
Beta Was this translation helpful? Give feedback.
All reactions