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

Function where_append

src/store/store.c:6978–6985  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

6976
6977/* Append a WHERE clause fragment, joining with AND if not the first. */
6978static int where_append(char *where, int where_sz, int wlen, int *nparams, const char *cond) {
6979 if (*nparams > 0) {
6980 wlen += snprintf(where + wlen, where_sz - wlen, " AND ");
6981 }
6982 wlen += snprintf(where + wlen, where_sz - wlen, "%s", cond);
6983 (*nparams)++;
6984 return wlen;
6985}
6986
6987/* Bind a text parameter and increment the bind index. */
6988static void where_bind_text(search_bind_t *binds, int *bind_idx, const char *val) {

Callers 5

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

Calls

no outgoing calls

Tested by

no test coverage detected