pub struct MsSqlConnection { /* private fields */ }Expand description
MS SQL connection wrapper
Implementations§
Source§impl MsSqlConnection
impl MsSqlConnection
Sourcepub async fn connect(
config: &MsSqlSourceConfig,
) -> Result<MsSqlConnection, Error>
pub async fn connect( config: &MsSqlSourceConfig, ) -> Result<MsSqlConnection, Error>
Sourcepub fn client_mut(&mut self) -> &mut Client<Compat<TcpStream>>
pub fn client_mut(&mut self) -> &mut Client<Compat<TcpStream>>
Get mutable reference to the underlying Tiberius client
Sourcepub fn client(&self) -> &Client<Compat<TcpStream>>
pub fn client(&self) -> &Client<Compat<TcpStream>>
Get reference to the underlying Tiberius client
Sourcepub async fn test_connection(&mut self) -> Result<(), Error>
pub async fn test_connection(&mut self) -> Result<(), Error>
Test the connection by running a simple query
Auto Trait Implementations§
impl !Freeze for MsSqlConnection
impl RefUnwindSafe for MsSqlConnection
impl Send for MsSqlConnection
impl Sync for MsSqlConnection
impl Unpin for MsSqlConnection
impl UnsafeUnpin for MsSqlConnection
impl UnwindSafe for MsSqlConnection
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