Instantiate a sqlx pool connection to a [DatabaseConnection]
(pool: PgPool)
| 131 | impl 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 | |
| 141 | impl SqlxPostgresPoolConnection { |
nothing calls this directly
no test coverage detected