[−][src]Struct koibumi_node::db::SqlitePool
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]
options: <<Sqlite as Database>::Connection as Connection>::Options
) -> Result<Self, Error>
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]
fn clone(&self) -> SqlitePool[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Debug for SqlitePool[src]
Auto Trait Implementations
impl !RefUnwindSafe for SqlitePool
impl Send for SqlitePool
impl Sync for SqlitePool
impl Unpin for SqlitePool
impl !UnwindSafe for SqlitePool
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,