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

Function db_queries_find

db/utils.c:301–312  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

299}
300
301static struct db_query_set *db_queries_find(const struct db_config *config)
302{
303 size_t num_queries;
304 struct db_query_set **queries = autodata_get(db_queries, &num_queries);
305
306 for (size_t i = 0; i < num_queries; i++) {
307 if (streq(config->name, queries[i]->name)) {
308 return queries[i];
309 }
310 }
311 return NULL;
312}
313
314void db_prepare_for_changes(struct db *db)
315{

Callers 1

db_open_Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected