| 358 | } |
| 359 | |
| 360 | void db_col_channel_id(struct db_stmt *stmt, const char *colname, struct channel_id *dest) |
| 361 | { |
| 362 | size_t col = db_query_colnum(stmt, colname); |
| 363 | |
| 364 | assert(db_column_bytes(stmt, col) == sizeof(dest->id)); |
| 365 | memcpy(dest->id, db_column_blob(stmt, col), sizeof(dest->id)); |
| 366 | } |
| 367 | |
| 368 | void db_col_node_id(struct db_stmt *stmt, const char *colname, struct node_id *dest) |
| 369 | { |
no test coverage detected