pub struct Database {
    pub connection: SqliteConnection,
}

Fields

connection: SqliteConnection

Implementations

Construct new database structure and database file if needed

Arguments

path - Path to database file

Panics

Attempts to connect to sqlite database and will panic! if connection fails.

Check if database has correct table and creates table if needed

Panics

Will panic! if fails to locate and/or create telemetry table

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Convert self to an expression for Diesel’s query builder. Read more

Convert &self to an expression for Diesel’s query builder. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.