mirror of
https://github.com/tursodatabase/limbo.git
synced 2025-07-24 21:03:44 +00:00
19 lines
381 B
Rust
19 lines
381 B
Rust
use crate::types::ImmutableRecord;
|
|
|
|
pub struct PseudoCursor {
|
|
current: Option<ImmutableRecord>,
|
|
}
|
|
|
|
impl PseudoCursor {
|
|
pub fn new() -> Self {
|
|
Self { current: None }
|
|
}
|
|
|
|
pub fn record(&self) -> Option<&ImmutableRecord> {
|
|
self.current.as_ref()
|
|
}
|
|
|
|
pub fn insert(&mut self, record: ImmutableRecord) {
|
|
self.current = Some(record);
|
|
}
|
|
}
|