core/mvcc: Add insert() helper to Cursor

This commit is contained in:
Pekka Enberg 2025-03-06 09:24:59 +02:00
parent b7382ffab1
commit 4247974f95

View file

@ -22,6 +22,10 @@ impl<Clock: LogicalClock> ScanCursor<Clock> {
})
}
pub fn insert(&self, row: Row) -> Result<()> {
self.db.insert(self.tx_id, row)
}
pub fn current_row_id(&self) -> Option<RowID> {
if self.index >= self.row_ids.len() {
return None;