[][src]Trait c3p0_json::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

Loading content...