[][src]Struct nafta::sqlite::TestDb

pub struct TestDb {
    pub pool: Pool,
    pub db_path: PathBuf,
    pub tmp_dir: TempDir,
}

Test database builder

Fields

pool: Pooldb_path: PathBuftmp_dir: TempDir

Implementations

impl TestDb[src]

pub fn new() -> TestDb[src]

Creates empty SQLite database using tempfile ( file: test.db folder based on CARGO_PKG_NAME )

pub fn conn(
    &self
) -> Option<PooledConnection<ConnectionManager<SqliteConnection>>>
[src]

Pooled connection

Auto Trait Implementations

impl !RefUnwindSafe for TestDb

impl Send for TestDb

impl Sync for TestDb

impl Unpin for TestDb

impl !UnwindSafe for TestDb

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoSql for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,