| 326 | } |
| 327 | |
| 328 | void db_col_node_id(struct db_stmt *stmt, const char *colname, struct node_id *dest) |
| 329 | { |
| 330 | size_t col = db_query_colnum(stmt, colname); |
| 331 | |
| 332 | assert(db_column_bytes(stmt, col) == sizeof(dest->k)); |
| 333 | memcpy(dest->k, db_column_blob(stmt, col), sizeof(dest->k)); |
| 334 | } |
| 335 | |
| 336 | struct node_id *db_col_node_id_arr(const tal_t *ctx, struct db_stmt *stmt, |
| 337 | const char *colname) |
no test coverage detected