[][src]Trait c3p0_mysql::C3p0

pub trait C3p0: Clone {
    type CONN: Connection;
    fn connection(&self) -> Result<Self::CONN, C3p0Error>;
fn transaction<T, F>(&self, tx: F) -> Result<T, C3p0Error>
    where
        F: Fn(&Self::CONN) -> Result<T, Box<dyn Error + 'static>>
; }

Associated Types

Loading content...

Required methods

fn connection(&self) -> Result<Self::CONN, C3p0Error>

fn transaction<T, F>(&self, tx: F) -> Result<T, C3p0Error> where
    F: Fn(&Self::CONN) -> Result<T, Box<dyn Error + 'static>>, 

Loading content...

Implementors

impl C3p0 for C3p0Mysql[src]

type CONN = MysqlConnection

Loading content...