pub struct CRUDRepositoryStatements { /* private fields */ }Implementations§
Source§impl CRUDRepositoryStatements
impl CRUDRepositoryStatements
pub fn empty() -> Self
pub fn new( table: impl Into<String>, columns: Vec<String>, mappings: StatementMappers, ) -> Self
pub fn insert(&self, fields: &[Parameter]) -> InsertStatement
pub fn update( &self, fields: &[Parameter], where_clause: &dyn IWhere, cell: &dyn Fn(&str, &Value) -> Result<Value>, ) -> Result<UpdateStatement>
pub fn select_inserted_id(&self, column: &str) -> SelectInsertedIdStatement
pub fn delete( &self, where_clause: &dyn IWhere, cell: &dyn Fn(&str, &Value) -> Result<Value>, ) -> Result<DeleteStatement>
Methods from Deref<Target = ReadonlyRepositoryStatements>§
pub fn mappings(&self) -> StatementMappers
pub fn table(&self) -> &str
pub fn read_columns(&self) -> &[String]
pub fn select(&self, where_clause: Option<&dyn IWhere>) -> SelectStatement
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for CRUDRepositoryStatements
impl !UnwindSafe for CRUDRepositoryStatements
impl Freeze for CRUDRepositoryStatements
impl Send for CRUDRepositoryStatements
impl Sync for CRUDRepositoryStatements
impl Unpin for CRUDRepositoryStatements
impl UnsafeUnpin for CRUDRepositoryStatements
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