pub struct ExecutionStore { /* private fields */ }Expand description
ExecutionStore - Main store class for managing execution records
Implementations§
Source§impl ExecutionStore
impl ExecutionStore
Sourcepub fn with_options(options: ExecutionStoreOptions) -> Self
pub fn with_options(options: ExecutionStoreOptions) -> Self
Create a new ExecutionStore with options
Sourcepub fn read_lino_records(&self) -> Vec<ExecutionRecord>
pub fn read_lino_records(&self) -> Vec<ExecutionRecord>
Read all execution records from lino file
Sourcepub fn save(&self, record: &ExecutionRecord) -> Result<(), String>
pub fn save(&self, record: &ExecutionRecord) -> Result<(), String>
Save an execution record (creates or updates)
Sourcepub fn get(&self, identifier: &str) -> Option<ExecutionRecord>
pub fn get(&self, identifier: &str) -> Option<ExecutionRecord>
Get an execution record by UUID or session name (falls back to options.sessionName)
Sourcepub fn get_all(&self) -> Vec<ExecutionRecord>
pub fn get_all(&self) -> Vec<ExecutionRecord>
Get all execution records
Sourcepub fn get_by_status(&self, status: ExecutionStatus) -> Vec<ExecutionRecord>
pub fn get_by_status(&self, status: ExecutionStatus) -> Vec<ExecutionRecord>
Get records filtered by status
Sourcepub fn get_executing(&self) -> Vec<ExecutionRecord>
pub fn get_executing(&self) -> Vec<ExecutionRecord>
Get currently executing commands
Sourcepub fn get_recent(&self, limit: usize) -> Vec<ExecutionRecord>
pub fn get_recent(&self, limit: usize) -> Vec<ExecutionRecord>
Get recently executed commands (sorted by start_time descending)
Sourcepub fn cleanup_stale(&self, options: CleanupOptions) -> CleanupResult
pub fn cleanup_stale(&self, options: CleanupOptions) -> CleanupResult
Clean up stale “executing” records (processes no longer running or aged out)
Sourcepub fn verify_consistency(&self) -> ConsistencyResult
pub fn verify_consistency(&self) -> ConsistencyResult
Verify that both databases have consistent data
Sourcepub fn get_stats(&self) -> ExecutionStats
pub fn get_stats(&self) -> ExecutionStats
Get database statistics
Sourcepub fn app_folder(&self) -> &Path
pub fn app_folder(&self) -> &Path
Get the app folder path
Trait Implementations§
Source§impl Clone for ExecutionStore
impl Clone for ExecutionStore
Source§fn clone(&self) -> ExecutionStore
fn clone(&self) -> ExecutionStore
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ExecutionStore
impl RefUnwindSafe for ExecutionStore
impl Send for ExecutionStore
impl Sync for ExecutionStore
impl Unpin for ExecutionStore
impl UnsafeUnpin for ExecutionStore
impl UnwindSafe for ExecutionStore
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more