mirror of
https://github.com/aljazceru/turso.git
synced 2026-02-02 23:04:23 +01:00
core/mvcc: Add insert() helper to Cursor
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user