Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Derive Clone on sea_orm::DatabaseConnection by default #518

Closed
wants to merge 1 commit into from

Conversation

feelingnothing
Copy link

PR Info

Fixes

#517

Changes

Adds Clone on sea_orm::DatabaseConnection

Copy link
Member

@billy1624 billy1624 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @feelingnothing, thanks for contributing!

Simply cloning the mock might result in weird and unexpected behaviour in environment with concurrent access to it. See #438 (comment) for details.

@billy1624
Copy link
Member

Hey @feelingnothing, I'm closing this PR in favour of #562. As discussed on #517 (comment).

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.

sea_orm::DatabaseConnection should implement Clone by default
2 participants