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

Method get_postgres_connection_pool

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

Source from the content-addressed store, hash-verified

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 ///

Callers 1

Calls

no outgoing calls

Tested by 1