Skip to content

Error during build: std::clone::Clone is not implemented for sea_orm::DatabaseConnection #411

Answered by billy1624
davidsmfreire asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @DavidFreire-FEUP, this error occured because you have mock feature enabled. If you don't need mock connection, then you could opt-out from mock feature.

/// Handle a database connection depending on the backend
/// enabled by the feature flags. This creates a database pool.
#[cfg_attr(not(feature = "mock"), derive(Clone))]
pub enum DatabaseConnection {
/// Create a MYSQL database connection and pool
#[cfg(feature = "sqlx-mysql")]
SqlxMySqlPoolConnection(crate::SqlxMySqlPoolConnection),
/// Create a PostgreSQL database connection and pool
#[cfg(feature = "sqlx-postgres")]

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by billy1624
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #410 on December 30, 2021 14:44.