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

Function db_datastore_create

wallet/wallet.c:6345–6355  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6343}
6344
6345static void db_datastore_create(struct db *db, const char **key, const u8 *data)
6346{
6347 struct db_stmt *stmt;
6348
6349 stmt = db_prepare_v2(db,
6350 SQL("INSERT INTO datastore VALUES (?, ?, 0);"));
6351
6352 db_bind_datastore_key(stmt, key);
6353 db_bind_talarr(stmt, data);
6354 db_exec_prepared_v2(take(stmt));
6355}
6356
6357void wallet_datastore_create(struct wallet *w, const char **key, const u8 *data)
6358{

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