mirror of
https://github.com/tursodatabase/limbo.git
synced 2025-07-07 20:45:01 +00:00
16 lines
335 B
Rust
16 lines
335 B
Rust
use crate::types::ImmutableRecord;
|
|
|
|
#[derive(Default)]
|
|
pub struct PseudoCursor {
|
|
current: Option<ImmutableRecord>,
|
|
}
|
|
|
|
impl PseudoCursor {
|
|
pub fn record(&self) -> Option<&ImmutableRecord> {
|
|
self.current.as_ref()
|
|
}
|
|
|
|
pub fn insert(&mut self, record: ImmutableRecord) {
|
|
self.current = Some(record);
|
|
}
|
|
}
|