(&self)
| 59 | } |
| 60 | |
| 61 | pub async fn migrate(&self) -> PersistenceResult<()> { |
| 62 | SQLITE_MIGRATOR |
| 63 | .run(&self.pool) |
| 64 | .await |
| 65 | .map_err(|e| map_migrate_error(&e)) |
| 66 | } |
| 67 | |
| 68 | /// Verify the database is reachable by acquiring a pooled connection |
| 69 | /// and issuing a ping. |
no test coverage detected