Skip to content

Commit

Permalink
chore: add comment on BTreeCursor::seek
Browse files Browse the repository at this point in the history
  • Loading branch information
KKould committed Jan 2, 2025
1 parent e5d0ad0 commit a339840
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/storage/btree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<'_>,
Expand Down

0 comments on commit a339840

Please sign in to comment.