chore: add comment on BTreeCursor::seek

This commit is contained in:
Kould 2025-01-02 18:18:17 +08:00
parent e5d0ad044e
commit a33984087f

View file

@ -417,6 +417,7 @@ impl BTreeCursor {
/// Move the cursor to the record that matches the seek key and seek operation.
/// This may be used to seek to a specific record in a point query (e.g. SELECT * FROM table WHERE col = 10)
/// or e.g. find the first record greater than the seek key in a range query (e.g. SELECT * FROM table WHERE col > 10).
/// We don't include the rowid in the comparison and that's why the last value from the record is not included.
fn seek(
&mut self,
key: SeekKey<'_>,