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

Function db_rune_insert

wallet/wallet.c:6752–6763  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6750}
6751
6752static void db_rune_insert(struct db *db,
6753 const struct rune *rune)
6754{
6755 struct db_stmt *stmt;
6756
6757 stmt = db_prepare_v2(db,
6758 SQL("INSERT INTO runes (id, rune) VALUES (?, ?);"));
6759 db_bind_u64(stmt, atol(rune->unique_id));
6760 db_bind_text(stmt, rune_to_base64(tmpctx, rune));
6761 db_exec_prepared_v2(stmt);
6762 tal_free(stmt);
6763}
6764
6765void wallet_rune_insert(struct wallet *wallet, const struct rune *rune)
6766{

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