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

Function db_col_strdup

db/bindings.c:326–336  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

324}
325
326char *db_col_strdup(const tal_t *ctx,
327 struct db_stmt *stmt,
328 const char *colname)
329{
330 size_t col = db_query_colnum(stmt, colname);
331
332 if (db_column_null_warn(stmt, colname, col))
333 return NULL;
334
335 return tal_strdup(ctx, (char *)stmt->db->config->column_text_fn(stmt, col));
336}
337
338char *db_col_strdup_optional(const tal_t *ctx,
339 struct db_stmt *stmt,

Callers 15

stmt2chain_eventFunction · 0.85
stmt2channel_eventFunction · 0.85
migrate_normalize_invstrFunction · 0.85
wallet_peer_loadFunction · 0.85
wallet_state_change_getFunction · 0.85
wallet_offer_findFunction · 0.85
wallet_get_runeFunction · 0.85
db_get_runesFunction · 0.85

Calls 2

db_query_colnumFunction · 0.85
db_column_null_warnFunction · 0.85

Tested by

no test coverage detected