You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've never worked with sqlx::Any, I'll try to explore that at some point. It might be a sensible "quickstart" default.
I would still want it to be possible to specify the generic for the database, since there are sometimes driver-specific methods (e.g. PgConnection::copy_in_raw) which would be impossible to access from an AnyConnection, as far as I can tell.
It seems that Sqlx 0.7 included sorting out the sqlx::any module so that it works usefully. See this comment last comment on Compiling with QueryBuilder::push_values based on AnyPool reports an error #1978
I have tested this on the example.rs and it works (I had to do some updates to cargo.toml versions).
If this is correct then my hope is that neither the Tx type nor the pool have to be database specific
We should be able to replace
type Tx = axum_sqlx_tx::Txsqlx::Any;
The text was updated successfully, but these errors were encountered: