pub struct MssqlTransaction<'a, S: AsyncRead + AsyncWrite + Unpin + Send> { /* private fields */ }Implementations§
Source§impl<'a, S> MssqlTransaction<'a, S>
impl<'a, S> MssqlTransaction<'a, S>
pub fn is_completed(&self) -> bool
pub async fn commit(self) -> Result<(), OrmError>
pub async fn rollback(self) -> Result<(), OrmError>
pub async fn execute( &mut self, query: CompiledQuery, ) -> Result<ExecuteResult, OrmError>
pub async fn query_raw<'b>( &'b mut self, query: CompiledQuery, ) -> Result<QueryStream<'b>, OrmError>
pub async fn fetch_one<T>( &mut self, query: CompiledQuery, ) -> Result<Option<T>, OrmError>
pub async fn fetch_all<T>( &mut self, query: CompiledQuery, ) -> Result<Vec<T>, OrmError>
Trait Implementations§
Source§impl<S> Executor for MssqlTransaction<'_, S>
impl<S> Executor for MssqlTransaction<'_, S>
fn execute<'life0, 'async_trait>(
&'life0 mut self,
query: CompiledQuery,
) -> Pin<Box<dyn Future<Output = Result<ExecuteResult, OrmError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn fetch_one<'life0, 'async_trait, T>( &'life0 mut self, query: CompiledQuery, ) -> Pin<Box<dyn Future<Output = Result<Option<T>, OrmError>> + Send + 'async_trait>>
fn fetch_all<'life0, 'async_trait, T>( &'life0 mut self, query: CompiledQuery, ) -> Pin<Box<dyn Future<Output = Result<Vec<T>, OrmError>> + Send + 'async_trait>>
Auto Trait Implementations§
impl<'a, S> Freeze for MssqlTransaction<'a, S>
impl<'a, S> !RefUnwindSafe for MssqlTransaction<'a, S>
impl<'a, S> Send for MssqlTransaction<'a, S>
impl<'a, S> Sync for MssqlTransaction<'a, S>where
S: Sync,
impl<'a, S> Unpin for MssqlTransaction<'a, S>
impl<'a, S> UnsafeUnpin for MssqlTransaction<'a, S>
impl<'a, S> !UnwindSafe for MssqlTransaction<'a, S>
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