[−][src]Struct diesel::r2d2::PooledConnection  
A smart pointer wrapping a connection.
Trait Implementations
impl<M> Debug for PooledConnection<M> where
    M: ManageConnection,
    <M as ManageConnection>::Connection: Debug, [src] 
impl<M> Debug for PooledConnection<M> where
    M: ManageConnection,
    <M as ManageConnection>::Connection: Debug, impl<M> Deref for PooledConnection<M> where
    M: ManageConnection, [src] 
impl<M> Deref for PooledConnection<M> where
    M: ManageConnection, type Target = <M as ManageConnection>::Connection
The resulting type after dereferencing.
fn deref(&self) -> &<M as ManageConnection>::Connection[src] 
fn deref(&self) -> &<M as ManageConnection>::Connectionimpl<M> Drop for PooledConnection<M> where
    M: ManageConnection, [src] 
impl<M> Drop for PooledConnection<M> where
    M: ManageConnection, impl<M> DerefMut for PooledConnection<M> where
    M: ManageConnection, [src] 
impl<M> DerefMut for PooledConnection<M> where
    M: ManageConnection, fn deref_mut(&mut self) -> &mut <M as ManageConnection>::Connection[src] 
fn deref_mut(&mut self) -> &mut <M as ManageConnection>::Connectionimpl<T> SimpleConnection for PooledConnection<ConnectionManager<T>> where
    T: Connection + Send + 'static, [src] 
impl<T> SimpleConnection for PooledConnection<ConnectionManager<T>> where
    T: Connection + Send + 'static, fn batch_execute(&self, query: &str) -> QueryResult<()>[src] 
fn batch_execute(&self, query: &str) -> QueryResult<()>impl<C> Connection for PooledConnection<ConnectionManager<C>> where
    C: Connection<TransactionManager = AnsiTransactionManager> + Send + 'static,
    C::Backend: UsesAnsiSavepointSyntax, [src] 
impl<C> Connection for PooledConnection<ConnectionManager<C>> where
    C: Connection<TransactionManager = AnsiTransactionManager> + Send + 'static,
    C::Backend: UsesAnsiSavepointSyntax, type Backend = C::Backend
The backend this type connects to
type TransactionManager = C::TransactionManager
fn establish(_: &str) -> ConnectionResult<Self>[src] 
fn establish(_: &str) -> ConnectionResult<Self>fn execute(&self, query: &str) -> QueryResult<usize>[src] 
fn execute(&self, query: &str) -> QueryResult<usize>fn query_by_index<T, U>(&self, source: T) -> QueryResult<Vec<U>> where
    T: AsQuery,
    T::Query: QueryFragment<Self::Backend> + QueryId,
    Self::Backend: HasSqlType<T::SqlType>,
    U: Queryable<T::SqlType, Self::Backend>, [src] 
fn query_by_index<T, U>(&self, source: T) -> QueryResult<Vec<U>> where
    T: AsQuery,
    T::Query: QueryFragment<Self::Backend> + QueryId,
    Self::Backend: HasSqlType<T::SqlType>,
    U: Queryable<T::SqlType, Self::Backend>, fn query_by_name<T, U>(&self, source: &T) -> QueryResult<Vec<U>> where
    T: QueryFragment<Self::Backend> + QueryId,
    U: QueryableByName<Self::Backend>, [src] 
fn query_by_name<T, U>(&self, source: &T) -> QueryResult<Vec<U>> where
    T: QueryFragment<Self::Backend> + QueryId,
    U: QueryableByName<Self::Backend>, fn execute_returning_count<T>(&self, source: &T) -> QueryResult<usize> where
    T: QueryFragment<Self::Backend> + QueryId, [src] 
fn execute_returning_count<T>(&self, source: &T) -> QueryResult<usize> where
    T: QueryFragment<Self::Backend> + QueryId, fn transaction_manager(&self) -> &Self::TransactionManager[src] 
fn transaction_manager(&self) -> &Self::TransactionManagerfn transaction<T, E, F>(&self, f: F) -> Result<T, E> where
    F: FnOnce() -> Result<T, E>,
    E: From<Error>, [src] 
fn transaction<T, E, F>(&self, f: F) -> Result<T, E> where
    F: FnOnce() -> Result<T, E>,
    E: From<Error>, Executes the given function inside of a database transaction Read more
fn begin_test_transaction(&self) -> QueryResult<()>[src] 
fn begin_test_transaction(&self) -> QueryResult<()>Creates a transaction that will never be committed. This is useful for tests. Panics if called while inside of a transaction. Read more
fn test_transaction<T, E, F>(&self, f: F) -> T where
    F: FnOnce() -> Result<T, E>,
    E: Debug, [src] 
fn test_transaction<T, E, F>(&self, f: F) -> T where
    F: FnOnce() -> Result<T, E>,
    E: Debug, Executes the given function inside a transaction, but does not commit it. Panics if the given function returns an error. Read more
Auto Trait Implementations
impl<M> Send for PooledConnection<M> where
    <M as ManageConnection>::Connection: Send, 
impl<M> Send for PooledConnection<M> where
    <M as ManageConnection>::Connection: Send, impl<M> Sync for PooledConnection<M> where
    <M as ManageConnection>::Connection: Send + Sync, 
impl<M> Sync for PooledConnection<M> where
    <M as ManageConnection>::Connection: Send + Sync, Blanket Implementations
impl<T> IntoSql for T[src] 
impl<T> IntoSql for Tfn into_sql<T>(self) -> AsExprOf<Self, T> where
    Self: AsExpression<T> + Sized, [src] 
fn into_sql<T>(self) -> AsExprOf<Self, T> where
    Self: AsExpression<T> + Sized, Convert self to an expression for Diesel's query builder. Read more
fn as_sql<'a, T>(&'a self) -> AsExprOf<&'a Self, T> where
    &'a Self: AsExpression<T>, [src] 
fn as_sql<'a, T>(&'a self) -> AsExprOf<&'a Self, T> where
    &'a Self: AsExpression<T>, Convert &self to an expression for Diesel's query builder. Read more
impl<T> From for T[src] 
impl<T> From for Timpl<T, U> Into for T where
    U: From<T>, [src] 
impl<T, U> Into for T where
    U: From<T>, impl<T, U> TryFrom for T where
    T: From<U>, [src] 
impl<T, U> TryFrom for T where
    T: From<U>, type Error = !
🔬 This is a nightly-only experimental API.  (
try_from)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src] 
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>impl<T> Borrow for T where
    T: ?Sized, [src] 
impl<T> Borrow for T where
    T: ?Sized, impl<T> Any for T where
    T: 'static + ?Sized, [src] 
impl<T> Any for T where
    T: 'static + ?Sized, fn get_type_id(&self) -> TypeId[src] 
fn get_type_id(&self) -> TypeIdimpl<T, U> TryInto for T where
    U: TryFrom<T>, [src] 
impl<T, U> TryInto for T where
    U: TryFrom<T>, type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API.  (
try_from)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src] 
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>impl<T> BorrowMut for T where
    T: ?Sized, [src] 
impl<T> BorrowMut for T where
    T: ?Sized, fn borrow_mut(&mut self) -> &mut T[src] 
fn borrow_mut(&mut self) -> &mut T