Replies: 3 comments 4 replies
-
|
We should also replace Currently, we already depend on the presence of Using |
Beta Was this translation helpful? Give feedback.
-
|
@Virgiel Thank you for your suggestion 😄. (I created a separate issue #54 for I'm not sure about Cornucopia being driver-agnostic, but I'd be interested in supporting 1) the synchronous The reason is that Synchronous |
Beta Was this translation helpful? Give feedback.
-
|
@Virgiel Looking at how Rusqlite does type discovery (the I'll wait for your comments 😄 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
We currently only support
tokio-postgres, but the syntax and a good part of the library logic are not specific to async PostgresSQL. I would like to use this library with non-asyncpostgresand SQLite viarusqlite.As there will be plenty of breaking changes in version 0.8, this would be a good time to add breaking changes now allowing support for other backend in future versions.
The
QueryandGenericClienttype should be backend specific:cornucopia_client::postgres::Queryandcornucopia_client::postgres::GenericClient. Backend support could use crates features when they are not compatible (Postgres vs SQLite), but we need to find a way to support both sync and async. Maybe always generate both with async by default and a separate module for sync:cornucopia_client::postgres::sync::Queryandcornucopia_client::postgres::sync::GenericClient.Beta Was this translation helpful? Give feedback.
All reactions