| 414 | } |
| 415 | |
| 416 | void *db_col_optional_(tal_t *dst, |
| 417 | struct db_stmt *stmt, const char *colname, |
| 418 | void (*colfn)(struct db_stmt *, const char *, void *)) |
| 419 | { |
| 420 | if (db_col_is_null(stmt, colname)) |
| 421 | return tal_free(dst); |
| 422 | |
| 423 | colfn(stmt, colname, dst); |
| 424 | return dst; |
| 425 | } |
| 426 | |
| 427 | struct short_channel_id * |
| 428 | db_col_short_channel_id_arr(const tal_t *ctx, struct db_stmt *stmt, const char *colname) |
nothing calls this directly
no test coverage detected