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

Function db_col_u64

db/bindings.c:257–265  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

255
256
257u64 db_col_u64(struct db_stmt *stmt, const char *colname)
258{
259 size_t col = db_query_colnum(stmt, colname);
260
261 if (db_column_null_warn(stmt, colname, col))
262 return 0;
263
264 return stmt->db->config->column_u64_fn(stmt, col);
265}
266
267int db_col_int_or_default(struct db_stmt *stmt, const char *colname, int def)
268{

Callers 15

migrate_last_tx_to_psbtFunction · 0.85
wallet_stmt2outputFunction · 0.85
wallet_shachain_loadFunction · 0.85
wallet_peer_loadFunction · 0.85
wallet_stmt2inflightFunction · 0.85
wallet_stmt2channelFunction · 0.85
set_max_channel_dbidFunction · 0.85

Calls 2

db_query_colnumFunction · 0.85
db_column_null_warnFunction · 0.85

Tested by 1

test_manip_columnsFunction · 0.68