mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-19 17:34:19 +01:00
51 lines
710 B
Rust
51 lines
710 B
Rust
use crate::PageRef;
|
|
|
|
#[derive(Debug, Clone)]
|
|
pub enum EmptyTableState {
|
|
Start,
|
|
ReadPage { page: PageRef },
|
|
}
|
|
|
|
#[derive(Debug, Clone, Copy)]
|
|
pub enum MoveToRightState {
|
|
Start,
|
|
ProcessPage,
|
|
}
|
|
|
|
#[derive(Debug, Clone, Copy)]
|
|
pub enum SeekToLastState {
|
|
Start,
|
|
IsEmpty,
|
|
}
|
|
|
|
#[derive(Debug, Clone, Copy)]
|
|
pub enum RewindState {
|
|
Start,
|
|
NextRecord,
|
|
}
|
|
|
|
#[derive(Debug, Clone, Copy)]
|
|
pub enum AdvanceState {
|
|
Start,
|
|
Advance,
|
|
}
|
|
|
|
#[derive(Debug, Clone, Copy)]
|
|
pub enum CountState {
|
|
Start,
|
|
Loop,
|
|
Finish,
|
|
}
|
|
|
|
#[derive(Debug, Clone, Copy)]
|
|
pub enum SeekEndState {
|
|
Start,
|
|
ProcessPage,
|
|
}
|
|
|
|
#[derive(Debug, Clone, Copy)]
|
|
pub enum MoveToState {
|
|
Start,
|
|
MoveToPage,
|
|
}
|