Struct iron_rusqlite_middleware::RusqliteMiddleware[][src]

pub struct RusqliteMiddleware {
    pub pool: RusqlitePool,
}

Iron rusqlite middleware

Fields

Pool of connections to SQLite through the rusqlite library

Methods

impl RusqliteMiddleware
[src]

Creates a new pooled connection to the SQLite database using the default options rusqlite. The path should be the path to the SQLite database file on your system.

See rusqlite::Connection::open for mode details.

Creates a new pooled connection to the SQLite database using the given rusqlite flags (i.e. rusqlite::OpenFlags). The path should be the path to the SQLite database file on your system.

See rusqlite::Connection::open_with_flags for mode details.

Get a handle to a pooled connection for the SQLite database. This can be used to execute some SQL commands prior to launching your Iron webserver. An example would be creating tables if they do not currently exist in the database.

Trait Implementations

impl Key for RusqliteMiddleware
[src]

The value type associated with this key type.

impl BeforeMiddleware for RusqliteMiddleware
[src]

Implementation of the iron::BeforeMiddleware trait to make this actually Iron middleware.

Do whatever work this middleware should do with a Request object.

Respond to an error thrown by a previous BeforeMiddleware. Read more

Auto Trait Implementations