Struct kubos_telemetry_db::Database
source · [−]pub struct Database {
pub connection: SqliteConnection,
}
Fields
connection: SqliteConnection
Implementations
sourceimpl Database
impl Database
sourcepub fn setup(&self)
pub fn setup(&self)
Check if database has correct table and creates table if needed
Panics
Will panic!
if fails to locate and/or create telemetry table
pub fn insert<'a>(
&self,
timestamp: f64,
subsystem: &'a str,
parameter: &'a str,
value: &'a str
) -> QueryResult<usize>
pub fn insert_systime<'a>(
&self,
subsystem: &'a str,
parameter: &'a str,
value: &'a str
) -> QueryResult<usize>
pub fn insert_bulk(&self, entries: Vec<Entry>) -> QueryResult<usize>
Auto Trait Implementations
impl !RefUnwindSafe for Database
impl Send for Database
impl !Sync for Database
impl Unpin for Database
impl UnwindSafe for Database
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more