MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / get_code_project

Method get_code_project

src/global_db.rs:1718–1730  ·  view source on GitHub ↗
(&self, project_id: &str)

Source from the content-addressed store, hash-verified

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

Calls 1

row_to_code_projectFunction · 0.85

Tested by

no test coverage detected