pub struct SqlServerMigrationGenerator {
pub target_sqlserver_version: u32,
}Fields§
§target_sqlserver_version: u32Target SQL Server product year (e.g. 2022, 2025) - threaded into every
GeneratorContext this generator builds so version-gated column type SQL (e.g. the
native json type, M6) matches what --sqlserver-version would produce on the create
path. 0 means “unset”.
Implementations§
Trait Implementations§
Source§impl MigrationGenerator for SqlServerMigrationGenerator
impl MigrationGenerator for SqlServerMigrationGenerator
fn generate( &self, change_set: &ChangeSet, database_model: &DatabaseModel, writer: &mut dyn Write, ) -> Result<(), MigrationGeneratorError>
Auto Trait Implementations§
impl Freeze for SqlServerMigrationGenerator
impl RefUnwindSafe for SqlServerMigrationGenerator
impl Send for SqlServerMigrationGenerator
impl Sync for SqlServerMigrationGenerator
impl Unpin for SqlServerMigrationGenerator
impl UnsafeUnpin for SqlServerMigrationGenerator
impl UnwindSafe for SqlServerMigrationGenerator
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