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

Function db_col_int_or_default

db/bindings.c:267–275  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

265}
266
267int db_col_int_or_default(struct db_stmt *stmt, const char *colname, int def)
268{
269 size_t col = db_query_colnum(stmt, colname);
270
271 if (db_column_is_null(stmt, col))
272 return def;
273 else
274 return stmt->db->config->column_int_fn(stmt, col);
275}
276
277size_t db_col_bytes(struct db_stmt *stmt, const char *colname)
278{

Callers 2

wallet_stmt2outputFunction · 0.85

Calls 2

db_query_colnumFunction · 0.85
db_column_is_nullFunction · 0.85

Tested by

no test coverage detected