MCPcopy Create free account
hub / github.com/bloomberg/comdb2 / tunables_generator

Function tunables_generator

tools/cdb2sql/cdb2sql.cpp:385–398  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

383}
384
385static char *tunables_generator(const char *text, const int state)
386{
387 char sql[256];
388 if (*text)
389 //TODO: escape text
390 snprintf(sql, sizeof(sql),
391 "SELECT DISTINCT name FROM comdb2_tunables "
392 "WHERE name LIKE '%s%%'",
393 text);
394 else
395 snprintf(sql, sizeof(sql),
396 "SELECT DISTINCT name FROM comdb2_tunables");
397 return db_generator(state, sql);
398}
399
400static char *tables_generator(const char *text, const int state)
401{

Callers

nothing calls this directly

Calls 1

db_generatorFunction · 0.85

Tested by

no test coverage detected