(&self)
| 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 | /// |
no outgoing calls