pub struct GenerateOptions {
pub database_model: Rc<DatabaseModel>,
pub writer: Rc<RefCell<PrintWriter>>,
pub foreign_key_mode: ForeignKeyMode,
pub boolean_mode: BooleanMode,
pub output_mode: OutputMode,
pub target_postgres_version: u32,
pub emit_postgres_extensions: bool,
pub extension_check_user: Option<String>,
pub target_sqlserver_version: u32,
}Fields§
§database_model: Rc<DatabaseModel>§writer: Rc<RefCell<PrintWriter>>§foreign_key_mode: ForeignKeyMode§boolean_mode: BooleanMode§output_mode: OutputMode§target_postgres_version: u32§emit_postgres_extensions: bool§extension_check_user: Option<String>§target_sqlserver_version: u32SQL Server’s product year (e.g. 2019, 2022, 2025), used to gate features not
available on every supported version - currently just the native json type,
introduced in SQL Server 2025 (see json_sql). 0 means “unset”, which is treated
as “target the widest range of servers” (pre-2025 behavior).
Implementations§
Source§impl GenerateOptions
impl GenerateOptions
pub fn new( database_model: Rc<DatabaseModel>, writer: Rc<RefCell<PrintWriter>>, ) -> Self
Auto Trait Implementations§
impl !RefUnwindSafe for GenerateOptions
impl !Send for GenerateOptions
impl !Sync for GenerateOptions
impl !UnwindSafe for GenerateOptions
impl Freeze for GenerateOptions
impl Unpin for GenerateOptions
impl UnsafeUnpin for GenerateOptions
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