Skip to content

Conversation

@owainc
Copy link

@owainc owainc commented Oct 22, 2025

Manually implement Clone to avoid unnecessary DB: Clone bound from derive macro.

As sqlx::Postgres and sql::Sqlite are not Clone it makes the pool non-cloneable. https://smallcultfollowing.com/babysteps/blog/2022/04/12/implied-bounds-and-perfect-derive/ provides more information on the reasons for the derive behaviour.

Manually implement Clone to avoid unnecessary DB: Clone bound from derive macro.
oscartbeaumont added a commit to oscartbeaumont/sqlx-tracing that referenced this pull request Nov 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant