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

Method get_mysql_connection_pool

src/database/db_connection.rs:515–520  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

513 /// Panics if [DbConn] is not a MySQL connection.
514 #[cfg(feature = "sqlx-mysql")]
515 pub fn get_mysql_connection_pool(&self) -> &sqlx::MySqlPool {
516 match self {
517 DatabaseConnection::SqlxMySqlPoolConnection(conn) => &conn.pool,
518 _ => panic!("Not MySQL Connection"),
519 }
520 }
521
522 /// Get [sqlx::PgPool]
523 ///

Callers 1

Calls

no outgoing calls

Tested by 1