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

Function generic_generator

tools/cdb2sql/cdb2sql.cpp:426–434  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

424}
425
426static char *generic_generator(const char *text, const int state)
427{
428 char sql[256];
429 //TODO: escape text
430 snprintf(sql, sizeof(sql),
431 "SELECT DISTINCT candidate FROM comdb2_completion('%s')", text);
432
433 return db_generator(state, sql);
434}
435
436// Custom completion function
437//

Callers

nothing calls this directly

Calls 1

db_generatorFunction · 0.85

Tested by

no test coverage detected