[−][src]Enum c3p0_postgres::PgConnection
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]
&'_ mut self,
sql: &'_ str,
params: &'_ [&'_ (dyn ToSql + Sync)]
) -> Result<u64, C3p0Error>
pub async fn fetch_one_value<T: FromSqlOwned, '_, '_, '_, '_>(
&'_ mut self,
sql: &'_ str,
params: &'_ [&'_ (dyn ToSql + Sync)]
) -> Result<T, C3p0Error>
[src]
&'_ mut self,
sql: &'_ str,
params: &'_ [&'_ (dyn ToSql + Sync)]
) -> Result<T, C3p0Error>
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]
&'_ mut self,
sql: &'_ str,
params: &'_ [&'_ (dyn ToSql + Sync)],
mapper: F
) -> Result<T, C3p0Error>
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]
&'_ mut self,
sql: &'_ str,
params: &'_ [&'_ (dyn ToSql + Sync)],
mapper: F
) -> Result<Option<T>, C3p0Error>
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]
&'_ mut self,
sql: &'_ str,
params: &'_ [&'_ (dyn ToSql + Sync)],
mapper: F
) -> Result<Vec<T>, C3p0Error>
pub async fn fetch_all_values<T: FromSqlOwned, '_, '_, '_, '_>(
&'_ mut self,
sql: &'_ str,
params: &'_ [&'_ (dyn ToSql + Sync)]
) -> Result<Vec<T>, C3p0Error>
[src]
&'_ mut self,
sql: &'_ str,
params: &'_ [&'_ (dyn ToSql + Sync)]
) -> Result<Vec<T>, C3p0Error>
Trait Implementations
impl SqlConnection for PgConnection
[src]
Auto Trait Implementations
impl !RefUnwindSafe for PgConnection
impl Send for PgConnection
impl Sync for PgConnection
impl Unpin for PgConnection
impl !UnwindSafe for PgConnection
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,
pub 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, 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.
pub 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.
pub 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>,