| 275 | } |
| 276 | |
| 277 | static void read_batch_renew(cbm_store_t *s) { |
| 278 | if (!s->read_batch || cbm_now_ms() - s->read_batch_started_ms < ST_READ_BATCH_MS) { |
| 279 | return; |
| 280 | } |
| 281 | cbm_store_read_batch_end(s); |
| 282 | (void)cbm_store_read_batch_begin(s); |
| 283 | } |
| 284 | |
| 285 | static sqlite3_stmt *prepare_cached(cbm_store_t *s, sqlite3_stmt **slot, const char *sql) { |
| 286 | if (!s || !s->db) { |
no test coverage detected