(&self, project_id: &str)
| 1716 | } |
| 1717 | |
| 1718 | pub async fn get_code_project(&self, project_id: &str) -> Option<CodeProjectRecord> { |
| 1719 | let mut rows = self |
| 1720 | .conn |
| 1721 | .query( |
| 1722 | "SELECT project_id, canonical_root, display_root, git_common_dir, |
| 1723 | git_remote_url, default_branch, created_at, last_seen_at |
| 1724 | FROM code_projects WHERE project_id = ?1", |
| 1725 | params![project_id], |
| 1726 | ) |
| 1727 | .await |
| 1728 | .ok()?; |
| 1729 | row_to_code_project(&rows.next().await.ok()??, 0) |
| 1730 | } |
| 1731 | |
| 1732 | async fn list_aliases_for_project(&self, project_id: &str) -> Vec<ProjectAliasRecord> { |
| 1733 | let Ok(mut rows) = self |
no test coverage detected