(&self)
| 526 | /// Panics if [DbConn] is not a Postgres connection. |
| 527 | #[cfg(feature = "sqlx-postgres")] |
| 528 | pub fn get_postgres_connection_pool(&self) -> &sqlx::PgPool { |
| 529 | match self { |
| 530 | DatabaseConnection::SqlxPostgresPoolConnection(conn) => &conn.pool, |
| 531 | _ => panic!("Not Postgres Connection"), |
| 532 | } |
| 533 | } |
| 534 | |
| 535 | /// Get [sqlx::SqlitePool] |
| 536 | /// |
no outgoing calls