| 1119 | } |
| 1120 | |
| 1121 | static 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 | |
| 1131 | TEST(activity_reply_memory_core_ownership) { |
| 1132 | sqlite3 *db = cbm_activity_open(":memory:"); |
nothing calls this directly
no outgoing calls
no test coverage detected