(&self)
| 33 | } |
| 34 | |
| 35 | pub async fn migrate(&self) -> PersistenceResult<()> { |
| 36 | POSTGRES_MIGRATOR |
| 37 | .run(&self.pool) |
| 38 | .await |
| 39 | .map_err(|e| map_migrate_error(&e)) |
| 40 | } |
| 41 | |
| 42 | /// Verify the database is reachable by acquiring a pooled connection |
| 43 | /// and issuing a protocol-level ping. |
nothing calls this directly
no test coverage detected