Struct metrics_sqlite::MetricsDb
source · [−]pub struct MetricsDb { /* private fields */ }
Expand description
Metrics database, useful for querying stored metrics
Implementations
Creates a new metrics DB with given path of a SQLite database
Returns sessions in database, based on SESSION_TIME_GAP_THRESHOLD
Returns list of metrics keys stored in the database
Returns all metrics for given key in ascending timestamp order
Auto Trait Implementations
impl !RefUnwindSafe for MetricsDb
impl UnwindSafe for MetricsDb
Blanket Implementations
Mutably borrows from an owned value. Read more
Convert self
to an expression for Diesel’s query builder. Read more
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
&'a Self: AsExpression<T>,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
&'a Self: AsExpression<T>,
Convert &self
to an expression for Diesel’s query builder. Read more