Closed PXNX closed 2 years ago
Reopening until there's a release, which should be very soon...
axum-sqlx-tx@0.4.0
is now released. This will likely fix your issue.
For context, this issue occurs because the version of SQLx used in your crate was different from the one used in axum-sqlx-tx
. The compiler therefore sees two different sqlx_core::database::Database
traits, with the same name, hence the confusing error message.
I'm not sure if there's a better way to manage dependencies when they're part of the public API. It'll be particularly relevant if SQLx is planning to make more frequent breaking changes!
When running this repo, I get the following error:
Is this a bug or something I can solve myself? If the latter, how may I do that?