[][src]Enum c3p0_postgres::PgConnection

pub enum PgConnection {
    Tx(&'static Transaction<'static>),
}

Variants

Tx(&'static Transaction<'static>)

Implementations

impl PgConnection[src]

pub async fn execute<'_, '_, '_, '_>(
    &'_ mut self,
    sql: &'_ str,
    params: &'_ [&'_ (dyn ToSql + Sync)]
) -> Result<u64, C3p0Error>
[src]

pub async fn fetch_one_value<T: FromSqlOwned, '_, '_, '_, '_>(
    &'_ mut self,
    sql: &'_ str,
    params: &'_ [&'_ (dyn ToSql + Sync)]
) -> Result<T, C3p0Error>
[src]

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

pub async fn fetch_one_optional<T, F: Fn(&Row) -> Result<T, Box<dyn Error>>, '_, '_, '_, '_>(
    &'_ mut self,
    sql: &'_ str,
    params: &'_ [&'_ (dyn ToSql + Sync)],
    mapper: F
) -> Result<Option<T>, C3p0Error>
[src]

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

pub async fn fetch_all_values<T: FromSqlOwned, '_, '_, '_, '_>(
    &'_ mut self,
    sql: &'_ str,
    params: &'_ [&'_ (dyn ToSql + Sync)]
) -> Result<Vec<T>, C3p0Error>
[src]

Trait Implementations

impl SqlConnection for PgConnection[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, 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>,