Conversation
|
@andygrove I tried to use a bunch of associated types on the various traits and managed to get the trait part to compile, although I haven't actually tried implementing the trait on the various database structs yet. I'm not sure if it's what you decided on in the end (following the chat in Discord) but maybe it's useful! sd2k@2adb34a |
|
@sd2k This is awesome :-) I was hoping someone would jump in and show me the way ... I think I chose the wrong database drivers to integrate with so we should perhaps look at tokio-postgres as the first one to implement with these new traits? |
|
Just taking a look at tokio-postgres. It immediately requires a change to the traits to make |
|
This appears to be close to compiling now: sd2k@a483a82. I can't figure out how to make the params in |
|
By some absolute miracle I got it to compile. Check the tests for I haven't even touched the other databases and I'm not completely sure how they'll work with the async traits. Latest commit is here: sd2k@0993910 |
No description provided.