[][src]Struct koibumi_node::db::SqlitePool

pub struct SqlitePool { /* fields omitted */ }

Writer and reader connection pools for SQLite.

Implementations

impl SqlitePool[src]

pub fn read(&self) -> &Pool<Sqlite>[src]

Returns the reader pool.

pub fn write(&self) -> &Pool<Sqlite>[src]

Returns the writer pool.

pub async fn connect_with(
    options: <<Sqlite as Database>::Connection as Connection>::Options
) -> Result<Self, Error>
[src]

Creates a new connection pool with a default pool configuration and the given connection options; and, immediately establishes one connection.

pub async fn close<'_>(&'_ self) -> ((), ())[src]

Ends the use of a connection pool. Prevents any new connections and will close all active connections when they are returned to the pool.

Does not resolve until all connections are closed.

Trait Implementations

impl Clone for SqlitePool[src]

impl Debug for SqlitePool[src]

Auto Trait Implementations

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> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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>,