| 5174 | } |
| 5175 | |
| 5176 | void wallet_datastore_create(struct wallet *w, const char **key, const u8 *data) |
| 5177 | { |
| 5178 | struct db_stmt *stmt; |
| 5179 | |
| 5180 | stmt = db_prepare_v2(w->db, |
| 5181 | SQL("INSERT INTO datastore VALUES (?, ?, 0);")); |
| 5182 | |
| 5183 | db_bind_datastore_key(stmt, 0, key); |
| 5184 | db_bind_talarr(stmt, 1, data); |
| 5185 | db_exec_prepared_v2(take(stmt)); |
| 5186 | } |
| 5187 | |
| 5188 | void wallet_datastore_remove(struct wallet *w, const char **key) |
| 5189 | { |
no test coverage detected