pub struct SqlServerTransaction { /* private fields */ }Implementations§
Source§impl SqlServerTransaction
impl SqlServerTransaction
pub fn new(connection: SqlServerConnection) -> Self
pub async fn execute( &self, sql: &str, params: &[DsValue], ) -> Result<u64, DsError>
pub async fn query( &self, sql: &str, params: &[DsValue], ) -> Result<Vec<DsValue>, DsError>
pub async fn commit(self) -> Result<(), DsError>
pub async fn rollback(self) -> Result<(), DsError>
Auto Trait Implementations§
impl Freeze for SqlServerTransaction
impl RefUnwindSafe for SqlServerTransaction
impl Send for SqlServerTransaction
impl Sync for SqlServerTransaction
impl Unpin for SqlServerTransaction
impl UnwindSafe for SqlServerTransaction
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