#[non_exhaustive]pub enum MssqlVersion {
SqlServer2016,
SqlServer2017,
SqlServer2019,
SqlServer2022,
SqlServer2025,
}Expand description
SQL Server engine version targeted by planning.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
SqlServer2016
SQL Server 2016.
SqlServer2017
SQL Server 2017.
SqlServer2019
SQL Server 2019.
SqlServer2022
SQL Server 2022.
SqlServer2025
SQL Server 2025.
Implementations§
Source§impl MssqlVersion
impl MssqlVersion
Sourcepub const fn default_compatibility_level(self) -> CompatibilityLevel
pub const fn default_compatibility_level(self) -> CompatibilityLevel
Returns the default database compatibility level for this SQL Server engine version.
Sourcepub const fn supports_compatibility_level(
self,
compatibility_level: CompatibilityLevel,
) -> bool
pub const fn supports_compatibility_level( self, compatibility_level: CompatibilityLevel, ) -> bool
Returns whether this SQL Server engine version supports the database compatibility level.
Trait Implementations§
Source§impl Clone for MssqlVersion
impl Clone for MssqlVersion
Source§fn clone(&self) -> MssqlVersion
fn clone(&self) -> MssqlVersion
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MssqlVersion
Source§impl Debug for MssqlVersion
impl Debug for MssqlVersion
impl Eq for MssqlVersion
Source§impl Hash for MssqlVersion
impl Hash for MssqlVersion
Source§impl PartialEq for MssqlVersion
impl PartialEq for MssqlVersion
impl StructuralPartialEq for MssqlVersion
Auto Trait Implementations§
impl Freeze for MssqlVersion
impl RefUnwindSafe for MssqlVersion
impl Send for MssqlVersion
impl Sync for MssqlVersion
impl Unpin for MssqlVersion
impl UnsafeUnpin for MssqlVersion
impl UnwindSafe for MssqlVersion
Blanket Implementations§
impl<T> Allocation for T
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