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

Function activity_interrupt_rows

tests/test_httpd.c:1121–1129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1119}
1120
1121static int activity_interrupt_rows(unsigned kind, void *database, void *statement, void *unused) {
1122 (void)kind;
1123 (void)unused;
1124 const char *sql = sqlite3_sql(statement);
1125 if (sql && (strstr(sql, "SELECT id,ts,level,source,message") ||
1126 strstr(sql, "SELECT id,payload FROM agent_events")))
1127 sqlite3_interrupt(database);
1128 return 0;
1129}
1130
1131TEST(activity_reply_memory_core_ownership) {
1132 sqlite3 *db = cbm_activity_open(":memory:");

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected