pub struct CRUDQuery<'a, T>where
T: Interface,{ /* private fields */ }
Expand description
CRUD query
Implementations§
Source§impl<'a, T> CRUDQuery<'a, T>where
T: Interface,
impl<'a, T> CRUDQuery<'a, T>where
T: Interface,
Sourcepub async fn insert(
self,
table: &str,
data: QueryData,
) -> Result<QueryResponse, Error>
pub async fn insert( self, table: &str, data: QueryData, ) -> Result<QueryResponse, Error>
Insert rows(s)
Sourcepub async fn select(
self,
table: &str,
fields: Vec<&str>,
where_cond: Option<Where>,
) -> Result<QueryResponse, Error>
pub async fn select( self, table: &str, fields: Vec<&str>, where_cond: Option<Where>, ) -> Result<QueryResponse, Error>
Select rows
If the columns is empty, all columns are returned
Trait Implementations§
Auto Trait Implementations§
impl<'a, T> Freeze for CRUDQuery<'a, T>
impl<'a, T> RefUnwindSafe for CRUDQuery<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for CRUDQuery<'a, T>
impl<'a, T> Sync for CRUDQuery<'a, T>
impl<'a, T> Unpin for CRUDQuery<'a, T>
impl<'a, T> UnwindSafe for CRUDQuery<'a, T>where
T: RefUnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more