Struct diesel::r2d2::PooledConnection [−][src]
pub struct PooledConnection<M> where
M: ManageConnection, { /* fields omitted */ }
Expand description
A smart pointer wrapping a connection.
Implementations
Returns a shared reference to the extensions associated with this connection.
Returns a mutable reference to the extensions associated with this connection.
Trait Implementations
impl<C> Connection for PooledConnection<ConnectionManager<C>> where
C: Connection<TransactionManager = AnsiTransactionManager> + Send + 'static,
C::Backend: UsesAnsiSavepointSyntax,
impl<C> Connection for PooledConnection<ConnectionManager<C>> where
C: Connection<TransactionManager = AnsiTransactionManager> + Send + 'static,
C::Backend: UsesAnsiSavepointSyntax,
type TransactionManager = C::TransactionManager
Establishes a new connection to the database Read more
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>,
fn execute_returning_count<T>(&self, source: &T) -> QueryResult<usize> where
T: QueryFragment<Self::Backend> + QueryId,
Executes the given function inside of a database transaction Read more
Creates a transaction that will never be committed. This is useful for tests. Panics if called while inside of a transaction. Read more
impl<M> Debug for PooledConnection<M> where
M: ManageConnection,
<M as ManageConnection>::Connection: Debug,
impl<M> Debug for PooledConnection<M> where
M: ManageConnection,
<M as ManageConnection>::Connection: Debug,
type Target = <M as ManageConnection>::Connection
type Target = <M as ManageConnection>::Connection
The resulting type after dereferencing.
Dereferences the value.
Mutably dereferences the value.
impl<T> SimpleConnection for PooledConnection<ConnectionManager<T>> where
T: Connection + Send + 'static,
impl<T> SimpleConnection for PooledConnection<ConnectionManager<T>> where
T: Connection + Send + 'static,
Execute multiple SQL statements within the same string. Read more