Files
turso/core/storage/state_machines.rs
Jussi Saurio c2855cb0db refactor/idx_insert: move seeking to VDBE instead of BTreeCursor
Also removes `InsertState` and `moved_before` since neither are
needed anymore.
2025-08-19 19:04:42 +03:00

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,
}