| 318 | } |
| 319 | |
| 320 | void db_col_channel_id(struct db_stmt *stmt, const char *colname, struct channel_id *dest) |
| 321 | { |
| 322 | size_t col = db_query_colnum(stmt, colname); |
| 323 | |
| 324 | assert(db_column_bytes(stmt, col) == sizeof(dest->id)); |
| 325 | memcpy(dest->id, db_column_blob(stmt, col), sizeof(dest->id)); |
| 326 | } |
| 327 | |
| 328 | void db_col_node_id(struct db_stmt *stmt, const char *colname, struct node_id *dest) |
| 329 | { |
no test coverage detected