(&self)
| 90 | } |
| 91 | |
| 92 | pub async fn get_connection(&self) -> Result<SqliteConnection, DatabaseError> { |
| 93 | self.pool |
| 94 | .acquire() |
| 95 | .await |
| 96 | .map(|conn| conn.detach()) |
| 97 | .map_err(|e| DatabaseError::ConnectionError(e.to_string())) |
| 98 | } |
| 99 | |
| 100 | async fn run_migrations(&self) -> Result<(), DatabaseError> { |
| 101 | info!("Running database migrations"); |
nothing calls this directly
no outgoing calls
no test coverage detected