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

Function db_datastore_create

wallet/wallet.c:6382–6392  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6380}
6381
6382static void db_datastore_create(struct db *db, const char **key, const u8 *data)
6383{
6384 struct db_stmt *stmt;
6385
6386 stmt = db_prepare_v2(db,
6387 SQL("INSERT INTO datastore VALUES (?, ?, 0);"));
6388
6389 db_bind_datastore_key(stmt, key);
6390 db_bind_talarr(stmt, data);
6391 db_exec_prepared_v2(take(stmt));
6392}
6393
6394void wallet_datastore_create(struct wallet *w, const char **key, const u8 *data)
6395{

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