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

Function db_rune_insert

wallet/wallet.c:6692–6703  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6690}
6691
6692static void db_rune_insert(struct db *db,
6693 const struct rune *rune)
6694{
6695 struct db_stmt *stmt;
6696
6697 stmt = db_prepare_v2(db,
6698 SQL("INSERT INTO runes (id, rune) VALUES (?, ?);"));
6699 db_bind_u64(stmt, atol(rune->unique_id));
6700 db_bind_text(stmt, rune_to_base64(tmpctx, rune));
6701 db_exec_prepared_v2(stmt);
6702 tal_free(stmt);
6703}
6704
6705void wallet_rune_insert(struct wallet *wallet, const struct rune *rune)
6706{

Callers 2

wallet_rune_insertFunction · 0.85
migrate_runes_idfixFunction · 0.85

Calls 5

db_bind_u64Function · 0.85
db_bind_textFunction · 0.85
rune_to_base64Function · 0.85
db_exec_prepared_v2Function · 0.85
tal_freeFunction · 0.85

Tested by

no test coverage detected