Struct akita::AkitaManager
source · [−]pub struct AkitaManager(_);
Expand description
an interface executing sql statement and getting the results as generic Akita values without any further conversion.
Implementations
sourceimpl AkitaManager
impl AkitaManager
pub fn new(db: DatabasePlatform) -> Self
pub fn start_transaction(&mut self) -> Result<(), AkitaError>
pub fn commit_transaction(&mut self) -> Result<(), AkitaError>
pub fn rollback_transaction(&mut self) -> Result<(), AkitaError>
pub fn execute_result<S: Into<String>, P: Into<Params>>(
&mut self,
sql: S,
params: P
) -> Result<Rows, AkitaError>
pub fn execute_drop<S: Into<String>, P: Into<Params>>(
&mut self,
sql: S,
params: P
) -> Result<(), AkitaError>
pub fn execute_iter<S: Into<String>, P: Into<Params>>(
&mut self,
sql: S,
params: P
) -> Result<Vec<Value>, AkitaError>
pub fn execute_first<S: Into<String>, P: Into<Params>>(
&mut self,
sql: S,
params: P
) -> Result<Value, AkitaError>
pub fn execute_first_opt<S: Into<String>, P: Into<Params>>(
&mut self,
sql: S,
params: P
) -> Result<Option<Value>, AkitaError>
Auto Trait Implementations
impl !RefUnwindSafe for AkitaManager
impl Send for AkitaManager
impl Sync for AkitaManager
impl Unpin for AkitaManager
impl !UnwindSafe for AkitaManager
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more