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

Function where_append

src/store/store.c:2423–2430  ·  view source on GitHub ↗

Append a WHERE clause fragment, joining with AND if not the first. */

Source from the content-addressed store, hash-verified

2421
2422/* Append a WHERE clause fragment, joining with AND if not the first. */
2423static int where_append(char *where, int where_sz, int wlen, int *nparams, const char *cond) {
2424 if (*nparams > 0) {
2425 wlen += snprintf(where + wlen, where_sz - wlen, " AND ");
2426 }
2427 wlen += snprintf(where + wlen, where_sz - wlen, "%s", cond);
2428 (*nparams)++;
2429 return wlen;
2430}
2431
2432/* Bind a text parameter and increment the bind index. */
2433static void where_bind_text(search_bind_t *binds, int *bind_idx, const char *val) {

Callers 4

where_add_regexFunction · 0.85
where_add_like_hintsFunction · 0.85
search_where_basicFunction · 0.85
search_where_advancedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected