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

Function db_col_optional_

db/bindings.c:416–425  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

414}
415
416void *db_col_optional_(tal_t *dst,
417 struct db_stmt *stmt, const char *colname,
418 void (*colfn)(struct db_stmt *, const char *, void *))
419{
420 if (db_col_is_null(stmt, colname))
421 return tal_free(dst);
422
423 colfn(stmt, colname, dst);
424 return dst;
425}
426
427struct short_channel_id *
428db_col_short_channel_id_arr(const tal_t *ctx, struct db_stmt *stmt, const char *colname)

Callers

nothing calls this directly

Calls 2

db_col_is_nullFunction · 0.85
tal_freeFunction · 0.85

Tested by

no test coverage detected