mirror of
https://github.com/tursodatabase/limbo.git
synced 2025-08-04 01:58:16 +00:00
core/mvcc: Add insert() helper to Cursor
This commit is contained in:
parent
b7382ffab1
commit
4247974f95
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue