mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-25 20:14:21 +01:00
iteration direction must be known when seeking, and transitively when using move_to() since seek() uses it, but otherwise IterationState just brings way too much noise to the code -- it was meant to encode invariants about how a cursor can be iterated, but it's not worth it. iteration direction for seek()/move_to() can be inferred from the SeekOp: GE/GT/EQ: forward LT/LE: backward and get_next_record()/get_prev_record() already have different logic for their respective iteration directions.