pub struct SqlServerDriver { /* private fields */ }Expand description
Opens SQL Server connections.
Implementations§
Source§impl SqlServerDriver
impl SqlServerDriver
pub fn new(config: DatabaseConfig) -> Self
pub fn with_options(config: DatabaseConfig, options: SqlServerOptions) -> Self
pub fn config(&self) -> &DatabaseConfig
pub fn options(&self) -> &SqlServerOptions
Trait Implementations§
Source§impl Driver for SqlServerDriver
impl Driver for SqlServerDriver
Source§fn generation(&self) -> u64
fn generation(&self) -> u64
Which generation of credentials a connection opened now would belong to. Read more
fn dialect(&self) -> Arc<dyn Dialect> ⓘ
fn connect(&self) -> BoxFuture<'_, Result<Box<dyn DriverConnection>>>
Source§fn describe(&self) -> String
fn describe(&self) -> String
How this connection is described in an error or a log line. Read more
Source§fn max_connections(&self) -> usize
fn max_connections(&self) -> usize
How many connections the pool should allow at once.
Auto Trait Implementations§
impl !RefUnwindSafe for SqlServerDriver
impl !UnwindSafe for SqlServerDriver
impl Freeze for SqlServerDriver
impl Send for SqlServerDriver
impl Sync for SqlServerDriver
impl Unpin for SqlServerDriver
impl UnsafeUnpin for SqlServerDriver
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