MCPcopy Create free account
hub / github.com/ElementsProject/lightning / db_queries_find

Function db_queries_find

db/utils.c:294–305  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

292}
293
294static struct db_query_set *db_queries_find(const struct db_config *config)
295{
296 size_t num_queries;
297 struct db_query_set **queries = autodata_get(db_queries, &num_queries);
298
299 for (size_t i = 0; i < num_queries; i++) {
300 if (streq(config->name, queries[i]->name)) {
301 return queries[i];
302 }
303 }
304 return NULL;
305}
306
307void db_prepare_for_changes(struct db *db)
308{

Callers 1

db_openFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected