pub struct DaoManager(pub DBPlatform);
Expand description
an interface executing sql statement and getting the results as generic DAO values without any further conversion.
Tuple Fields§
§0: DBPlatform
Implementations§
Source§impl DaoManager
impl DaoManager
pub fn begin_transaction(&mut self) -> Result<(), DbError>
pub fn commit_transaction(&mut self) -> Result<(), DbError>
pub fn rollback_transaction(&mut self) -> Result<(), DbError>
pub fn execute_sql_with_return( &mut self, sql: &str, params: &[&Value], ) -> Result<Rows, DbError>
pub fn execute_sql_with_records_return( &mut self, sql: &str, params: &[&Value], ) -> Result<Vec<Dao>, DbError>
pub fn execute_sql_with_one_return( &mut self, sql: &str, params: &[&Value], ) -> Result<Dao, DbError>
pub fn execute_sql_with_maybe_one_return( &mut self, sql: &str, params: &[&Value], ) -> Result<Option<Dao>, DbError>
Auto Trait Implementations§
impl Freeze for DaoManager
impl !RefUnwindSafe for DaoManager
impl Send for DaoManager
impl !Sync for DaoManager
impl Unpin for DaoManager
impl !UnwindSafe for DaoManager
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