Expand description
SQLite Backend for Experiment Storage (MLOPS-001)
Sovereign, local-first storage using SQLite with WAL mode.
§Toyota Way: (Heijunka)
SQLite provides consistent, predictable performance without external dependencies.
§Example
ⓘ
use entrenar::storage::{SqliteBackend, ExperimentStorage, RunStatus};
let backend = SqliteBackend::open("./experiments.db")?;
let exp_id = backend.create_experiment("my-exp", None)?;
let run_id = backend.create_run(&exp_id)?;
backend.log_metric(&run_id, "loss", 0, 0.5)?;§Module Organization
backend- Core SqliteBackend struct and basic CRUD operationsqueries- Search, list, and parameter filtering methodsmetrics- Metric logging and retrieval (implements ExperimentStorage trait)artifacts- Artifact storage and retrievaltypes- Type definitions (ParameterValue, Experiment, Run, ArtifactRef)
Structs§
- Artifact
Ref - Artifact reference
- Experiment
- Experiment metadata
- Param
Filter - Parameter filter for searching runs
- Run
- Run metadata
- Sqlite
Backend - SQLite backend for experiment storage
Enums§
- Filter
Op - Filter operations for parameter search
- Parameter
Value - Parameter value types for log_param