From 4247974f95d459f37feb804ca2be985d4bffd455 Mon Sep 17 00:00:00 2001 From: Pekka Enberg Date: Thu, 6 Mar 2025 09:24:59 +0200 Subject: [PATCH] core/mvcc: Add insert() helper to Cursor --- core/mvcc/cursor.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/mvcc/cursor.rs b/core/mvcc/cursor.rs index e39dd7eb2..5fed0941f 100644 --- a/core/mvcc/cursor.rs +++ b/core/mvcc/cursor.rs @@ -22,6 +22,10 @@ impl ScanCursor { }) } + pub fn insert(&self, row: Row) -> Result<()> { + self.db.insert(self.tx_id, row) + } + pub fn current_row_id(&self) -> Option { if self.index >= self.row_ids.len() { return None;