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

Function anchored_trace_cb

tests/test_store_search.c:963–969  ·  view source on GitHub ↗

Statements a search ran with the name-range predicate (SQLITE_TRACE_STMT). */

Source from the content-addressed store, hash-verified

961
962/* Statements a search ran with the name-range predicate (SQLITE_TRACE_STMT). */
963static int anchored_trace_cb(unsigned type, void *ctx, void *stmt, void *sql) {
964 (void)stmt;
965 if (type == SQLITE_TRACE_STMT && sql && strstr((const char *)sql, "n.name >= ?")) {
966 (*(int *)ctx)++;
967 }
968 return 0;
969}
970
971/* "name#label;" per row plus the total, for comparing two searches. */
972static void anchored_search_rows(cbm_store_t *s, const cbm_search_params_t *p, int *rc,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected