pub struct SqlServerConnection { /* private fields */ }Implementations§
Source§impl SqlServerConnection
impl SqlServerConnection
pub fn new(service: Arc<SqlServerService>) -> 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 begin_transaction(self) -> Result<SqlServerTransaction, DsError>
Auto Trait Implementations§
impl Freeze for SqlServerConnection
impl RefUnwindSafe for SqlServerConnection
impl Send for SqlServerConnection
impl Sync for SqlServerConnection
impl Unpin for SqlServerConnection
impl UnsafeUnpin for SqlServerConnection
impl UnwindSafe for SqlServerConnection
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