MCPcopy Create free account
hub / github.com/SeaQL/sea-orm / from_sqlx_mysql_pool

Method from_sqlx_mysql_pool

src/driver/sqlx_mysql.rs:102–107  ·  view source on GitHub ↗

Instantiate a sqlx pool connection to a [DatabaseConnection]

(pool: MySqlPool)

Source from the content-addressed store, hash-verified

100impl SqlxMySqlConnector {
101 /// Instantiate a sqlx pool connection to a [DatabaseConnection]
102 pub fn from_sqlx_mysql_pool(pool: MySqlPool) -> DatabaseConnection {
103 DatabaseConnection::SqlxMySqlPoolConnection(SqlxMySqlPoolConnection {
104 pool,
105 metric_callback: None,
106 })
107 }
108}
109
110impl SqlxMySqlPoolConnection {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected