Struct r2d2_sqlite::SqliteConnectionManager [] [src]

pub struct SqliteConnectionManager {
    // some fields omitted
}

Methods

impl SqliteConnectionManager
[src]

fn new(database: &str) -> Result<SqliteConnectionManager, SqliteError>

Trait Implementations

impl ManageConnection for SqliteConnectionManager
[src]

type Connection = SqliteConnection

The connection type this manager deals with.

type Error = Error

The error type returned by Connections.

fn connect(&self) -> Result<SqliteConnection, Error>

Attempts to create a new connection.

fn is_valid(&self, conn: &mut SqliteConnection) -> Result<()Error>

Determines if the connection is still connected to the database. Read more

fn has_broken(&self, conn: &mut SqliteConnection) -> bool

Quickly determines if the connection is no longer usable. Read more