MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / cross_repo_exec

Function cross_repo_exec

tests/test_cross_repo.c:150–165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148}
149
150static bool cross_repo_exec(const cross_repo_fixture_t *fixture, const char *project,
151 const char *sql) {
152 char path[512];
153 if (!cross_repo_project_path(fixture, project, path, sizeof(path))) {
154 return false;
155 }
156 cbm_store_t *store = cbm_store_open_path_existing(path);
157 if (!store) {
158 return false;
159 }
160 char *error = NULL;
161 int rc = sqlite3_exec(cbm_store_get_db(store), sql, NULL, NULL, &error);
162 sqlite3_free(error);
163 cbm_store_close(store);
164 return rc == SQLITE_OK;
165}
166
167static int cross_repo_count_edges(const cross_repo_fixture_t *fixture, const char *project,
168 const char *edge_type) {

Callers 1

test_cross_repo.cFile · 0.85

Calls 4

cross_repo_project_pathFunction · 0.85
cbm_store_get_dbFunction · 0.85
cbm_store_closeFunction · 0.85

Tested by

no test coverage detected