(&self, request_id: &str)
| 226 | } |
| 227 | |
| 228 | pub async fn get_request(&self, request_id: &str) -> Result<Option<ArticleRequestRecord>> { |
| 229 | let table = self.requests_table().await?; |
| 230 | let filter = format!("request_id = '{}'", escape_literal(request_id)); |
| 231 | let rows = query_requests(&table, Some(&filter), Some(1), None).await?; |
| 232 | Ok(rows.into_iter().next()) |
| 233 | } |
| 234 | |
| 235 | pub async fn list_requests( |
| 236 | &self, |
no test coverage detected