[][src]Struct c3p0_pg::C3p0Repository

pub struct C3p0Repository<DATA> where
    DATA: Clone + Serialize + DeserializeOwned
{ /* fields omitted */ }

Methods

impl<DATA> C3p0Repository<DATA> where
    DATA: Clone + Serialize + DeserializeOwned
[src]

pub fn build(conf: Config<DATA>) -> Self[src]

Trait Implementations

impl<DATA> C3p0<DATA> for C3p0Repository<DATA> where
    DATA: Clone + Serialize + DeserializeOwned
[src]

fn to_model(&self, row: Row) -> Result<Model<DATA>, C3p0Error>[src]

fn create_table_if_not_exists(
    &self,
    conn: &Connection
) -> Result<u64, C3p0Error>
[src]

fn drop_table_if_exists(&self, conn: &Connection) -> Result<u64, C3p0Error>[src]

fn count_all(&self, conn: &Connection) -> Result<i64, C3p0Error>[src]

fn exists_by_id<'a, ID: Into<&'a i64>>(
    &'a self,
    conn: &Connection,
    id: ID
) -> Result<bool, C3p0Error>
[src]

fn find_all(&self, conn: &Connection) -> Result<Vec<Model<DATA>>, C3p0Error>[src]

fn find_by_id<'a, ID: Into<&'a i64>>(
    &'a self,
    conn: &Connection,
    id: ID
) -> Result<Option<Model<DATA>>, C3p0Error>
[src]

fn delete_all(&self, conn: &Connection) -> Result<u64, C3p0Error>[src]

fn delete_by_id<'a, ID: Into<&'a i64>>(
    &'a self,
    conn: &Connection,
    id: ID
) -> Result<u64, C3p0Error>
[src]

fn save(
    &self,
    conn: &Connection,
    obj: NewModel<DATA>
) -> Result<Model<DATA>, C3p0Error>
[src]

impl<DATA: Clone> Clone for C3p0Repository<DATA> where
    DATA: Clone + Serialize + DeserializeOwned
[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl<DATA> Send for C3p0Repository<DATA> where
    DATA: Send

impl<DATA> Sync for C3p0Repository<DATA> where
    DATA: Sync

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Same for T

type Output = T

Should always be Self