| 279 | |
| 280 | |
| 281 | u64 db_col_u64(struct db_stmt *stmt, const char *colname) |
| 282 | { |
| 283 | size_t col = db_query_colnum(stmt, colname); |
| 284 | |
| 285 | if (db_column_null_warn(stmt, colname, col)) |
| 286 | return 0; |
| 287 | |
| 288 | return stmt->db->config->column_u64_fn(stmt, col); |
| 289 | } |
| 290 | |
| 291 | u64 db_col_s64(struct db_stmt *stmt, const char *colname) |
| 292 | { |