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

Function db_datastore_create

wallet/wallet.c:6405–6415  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6403}
6404
6405static void db_datastore_create(struct db *db, const char **key, const u8 *data)
6406{
6407 struct db_stmt *stmt;
6408
6409 stmt = db_prepare_v2(db,
6410 SQL("INSERT INTO datastore VALUES (?, ?, 0);"));
6411
6412 db_bind_datastore_key(stmt, key);
6413 db_bind_talarr(stmt, data);
6414 db_exec_prepared_v2(take(stmt));
6415}
6416
6417void wallet_datastore_create(struct wallet *w, const char **key, const u8 *data)
6418{

Calls 3

db_bind_talarrFunction · 0.85
db_exec_prepared_v2Function · 0.85
db_bind_datastore_keyFunction · 0.70

Tested by

no test coverage detected