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

Method from_sqlx_postgres_pool

src/driver/sqlx_postgres.rs:133–138  ·  view source on GitHub ↗

Instantiate a sqlx pool connection to a [DatabaseConnection]

(pool: PgPool)

Source from the content-addressed store, hash-verified

131impl SqlxPostgresConnector {
132 /// Instantiate a sqlx pool connection to a [DatabaseConnection]
133 pub fn from_sqlx_postgres_pool(pool: PgPool) -> DatabaseConnection {
134 DatabaseConnection::SqlxPostgresPoolConnection(SqlxPostgresPoolConnection {
135 pool,
136 metric_callback: None,
137 })
138 }
139}
140
141impl SqlxPostgresPoolConnection {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected