pub struct SqlServerConnectionFactory { /* private fields */ }Expand description
SQL Server connection factory
Implementations§
Source§impl SqlServerConnectionFactory
impl SqlServerConnectionFactory
Sourcepub fn new(config: ConnectionConfig) -> Self
pub fn new(config: ConnectionConfig) -> Self
Create a new SQL Server connection factory
Trait Implementations§
Source§impl ConnectionFactory for SqlServerConnectionFactory
impl ConnectionFactory for SqlServerConnectionFactory
Source§fn connect<'life0, 'life1, 'async_trait>(
&'life0 self,
config: &'life1 ConnectionConfig,
) -> Pin<Box<dyn Future<Output = Result<Box<dyn Connection>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn connect<'life0, 'life1, 'async_trait>(
&'life0 self,
config: &'life1 ConnectionConfig,
) -> Pin<Box<dyn Future<Output = Result<Box<dyn Connection>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Create a new connection
Source§fn database_type(&self) -> DatabaseType
fn database_type(&self) -> DatabaseType
Get the database type
Auto Trait Implementations§
impl Freeze for SqlServerConnectionFactory
impl RefUnwindSafe for SqlServerConnectionFactory
impl Send for SqlServerConnectionFactory
impl Sync for SqlServerConnectionFactory
impl Unpin for SqlServerConnectionFactory
impl UnsafeUnpin for SqlServerConnectionFactory
impl UnwindSafe for SqlServerConnectionFactory
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