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

Function db_col_int_or_default

db/bindings.c:296–304  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

294}
295
296int db_col_int_or_default(struct db_stmt *stmt, const char *colname, int def)
297{
298 size_t col = db_query_colnum(stmt, colname);
299
300 if (db_column_is_null(stmt, col))
301 return def;
302 else
303 return stmt->db->config->column_int_fn(stmt, col);
304}
305
306size_t db_col_bytes(struct db_stmt *stmt, const char *colname)
307{

Callers 2

wallet_stmt2outputFunction · 0.85
wallet_stmt2channelFunction · 0.85

Calls 2

db_query_colnumFunction · 0.85
db_column_is_nullFunction · 0.85

Tested by

no test coverage detected