[][src]Enum c3p0_pool_sqlite::SqliteConnection

pub enum SqliteConnection {
    Conn(PooledConnection<SqliteConnectionManager>),
    Tx(RefCell<SimpleMut>),
}

Variants

Conn(PooledConnection<SqliteConnectionManager>)Tx(RefCell<SimpleMut>)

Methods

impl SqliteConnection[src]

pub fn execute(
    &self,
    sql: &str,
    params: &[&dyn ToSql]
) -> Result<u64, C3p0Error>
[src]

pub fn fetch_one_value<T: FromSql>(
    &self,
    sql: &str,
    params: &[&dyn ToSql]
) -> Result<T, C3p0Error>
[src]

pub fn fetch_one<T, F: Fn(&Row) -> Result<T, Box<dyn Error>>>(
    &self,
    sql: &str,
    params: &[&dyn ToSql],
    mapper: F
) -> Result<T, C3p0Error>
[src]

pub fn fetch_one_option<T, F: Fn(&Row) -> Result<T, Box<dyn Error>>>(
    &self,
    sql: &str,
    params: &[&dyn ToSql],
    mapper: F
) -> Result<Option<T>, C3p0Error>
[src]

pub fn fetch_all<T, F: Fn(&Row) -> Result<T, Box<dyn Error>>>(
    &self,
    sql: &str,
    params: &[&dyn ToSql],
    mapper: F
) -> Result<Vec<T>, C3p0Error>
[src]

pub fn fetch_all_values<T: FromSql>(
    &self,
    sql: &str,
    params: &[&dyn ToSql]
) -> Result<Vec<T>, C3p0Error>
[src]

Trait Implementations

Auto Trait Implementations

Blanket Implementations

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

impl<T, U> Into<U> for T where
    U: From<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<T> Borrow<T> for T where
    T: ?Sized
[src]

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

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