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

Function db_col_strdup

db/bindings.c:297–307  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

295}
296
297char *db_col_strdup(const tal_t *ctx,
298 struct db_stmt *stmt,
299 const char *colname)
300{
301 size_t col = db_query_colnum(stmt, colname);
302
303 if (db_column_null_warn(stmt, colname, col))
304 return NULL;
305
306 return tal_strdup(ctx, (char *)stmt->db->config->column_text_fn(stmt, col));
307}
308
309void db_col_preimage(struct db_stmt *stmt, const char *colname,
310 struct preimage *preimage)

Callers 15

wallet_peer_loadFunction · 0.85
wallet_state_change_getFunction · 0.85
wallet_stmt2paymentFunction · 0.85
wallet_offer_findFunction · 0.85
stmt2chain_eventFunction · 0.85
stmt2channel_eventFunction · 0.85
stmt2rebalanceFunction · 0.85

Calls 2

db_query_colnumFunction · 0.85
db_column_null_warnFunction · 0.85

Tested by

no test coverage detected