| 6343 | } |
| 6344 | |
| 6345 | static 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 | |
| 6357 | void wallet_datastore_create(struct wallet *w, const char **key, const u8 *data) |
| 6358 | { |
no test coverage detected