Struct r2d2_sqlite3::SqliteConnectionManager
[−]
[src]
pub struct SqliteConnectionManager(_);
An r2d2::ManageConnection
for rusqlite::Connection
s.
Methods
impl SqliteConnectionManager
[src]
pub fn file<P: AsRef<Path>>(path: P) -> Self
[src]
Creates a new SqliteConnectionManager
from file.
pub fn memory() -> Self
[src]
Trait Implementations
impl ManageConnection for SqliteConnectionManager
[src]
type Connection = Connection
The connection type this manager deals with.
type Error = Error
The error type returned by Connection
s.
fn connect(&self) -> Result<Connection, Error>
[src]
Attempts to create a new connection.
fn is_valid(&self, conn: &mut Connection) -> Result<(), Error>
[src]
Determines if the connection is still connected to the database. Read more
fn has_broken(&self, _: &mut Connection) -> bool
[src]
Quickly determines if the connection is no longer usable. Read more