[]Trait c3p0_pool_mysql::r2d2::mysql::prelude::GenericConnection

pub trait GenericConnection {
    fn query<T>(&mut self, query: T) -> Result<QueryResult, Error>
    where
        T: AsRef<str>
;
fn first<T, U>(&mut self, query: T) -> Result<Option<U>, Error>
    where
        T: AsRef<str>,
        U: FromRow
;
fn prepare<T>(&mut self, query: T) -> Result<Stmt, Error>
    where
        T: AsRef<str>
;
fn prep_exec<A, T>(
        &mut self,
        query: A,
        params: T
    ) -> Result<QueryResult, Error>
    where
        A: AsRef<str>,
        T: Into<Params>
;
fn first_exec<Q, P, T>(
        &mut self,
        query: Q,
        params: P
    ) -> Result<Option<T>, Error>
    where
        P: Into<Params>,
        Q: AsRef<str>,
        T: FromRow
; }

A trait allowing abstraction over connections and transactions

Required methods

fn query<T>(&mut self, query: T) -> Result<QueryResult, Error> where
    T: AsRef<str>, 

fn first<T, U>(&mut self, query: T) -> Result<Option<U>, Error> where
    T: AsRef<str>,
    U: FromRow

fn prepare<T>(&mut self, query: T) -> Result<Stmt, Error> where
    T: AsRef<str>, 

fn prep_exec<A, T>(&mut self, query: A, params: T) -> Result<QueryResult, Error> where
    A: AsRef<str>,
    T: Into<Params>, 

fn first_exec<Q, P, T>(
    &mut self,
    query: Q,
    params: P
) -> Result<Option<T>, Error> where
    P: Into<Params>,
    Q: AsRef<str>,
    T: FromRow

Loading content...

Implementors

impl GenericConnection for Conn

impl GenericConnection for PooledConn

impl<'a> GenericConnection for Transaction<'a>

Loading content...