[−][src]Struct c3p0_pg::C3p0Repository
Methods
impl<DATA> C3p0Repository<DATA> where
DATA: Clone + Serialize + DeserializeOwned,
[src]
DATA: Clone + Serialize + DeserializeOwned,
Trait Implementations
impl<DATA> C3p0<DATA> for C3p0Repository<DATA> where
DATA: Clone + Serialize + DeserializeOwned,
[src]
DATA: Clone + Serialize + DeserializeOwned,
fn conf(&self) -> &Config<DATA>
[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]
&self,
conn: &Connection
) -> Result<u64, C3p0Error>
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]
&'a self,
conn: &Connection,
id: ID
) -> Result<bool, C3p0Error>
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]
&'a self,
conn: &Connection,
id: ID
) -> Result<Option<Model<DATA>>, C3p0Error>
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]
&'a self,
conn: &Connection,
id: ID
) -> Result<u64, C3p0Error>
fn save(
&self,
conn: &Connection,
obj: NewModel<DATA>
) -> Result<Model<DATA>, C3p0Error>
[src]
&self,
conn: &Connection,
obj: NewModel<DATA>
) -> Result<Model<DATA>, C3p0Error>
impl<DATA: Clone> Clone for C3p0Repository<DATA> where
DATA: Clone + Serialize + DeserializeOwned,
[src]
DATA: Clone + Serialize + DeserializeOwned,
fn clone(&self) -> C3p0Repository<DATA>
[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,
DATA: Send,
impl<DATA> Sync for C3p0Repository<DATA> where
DATA: Sync,
DATA: Sync,
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Same for T
type Output = T
Should always be Self