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

Function where_append

src/store/store.c:4227–4234  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

4225
4226/* Append a WHERE clause fragment, joining with AND if not the first. */
4227static int where_append(char *where, int where_sz, int wlen, int *nparams, const char *cond) {
4228 if (*nparams > 0) {
4229 wlen += snprintf(where + wlen, where_sz - wlen, " AND ");
4230 }
4231 wlen += snprintf(where + wlen, where_sz - wlen, "%s", cond);
4232 (*nparams)++;
4233 return wlen;
4234}
4235
4236/* Bind a text parameter and increment the bind index. */
4237static 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