pub struct DefaultProcedureGenerator { /* private fields */ }Implementations§
Source§impl DefaultProcedureGenerator
impl DefaultProcedureGenerator
pub fn new(context: GeneratorContext) -> Self
pub fn context(&self) -> &GeneratorContext
Sourcepub fn output_procedures_via(&self, generator: &dyn ProcedureGenerator)
pub fn output_procedures_via(&self, generator: &dyn ProcedureGenerator)
Same iteration/filtering logic as output_procedures, but dispatches each
procedure through generator rather than self. Rust has no virtual dispatch on
concrete types, so a dialect wrapper (e.g. SqlServerProcedureGenerator) that
overrides output_procedure but delegates output_procedures straight to this
struct would otherwise never see its own override invoked - callers that need
their override honored should pass self (as a &dyn ProcedureGenerator) here
instead of calling output_procedures directly.
Trait Implementations§
Source§impl ProcedureGenerator for DefaultProcedureGenerator
impl ProcedureGenerator for DefaultProcedureGenerator
fn output_procedures(&self)
fn output_procedure( &self, writer: &mut SqlWriter, statement_separator: &str, procedure: &Procedure, )
Auto Trait Implementations§
impl !RefUnwindSafe for DefaultProcedureGenerator
impl !Send for DefaultProcedureGenerator
impl !Sync for DefaultProcedureGenerator
impl !UnwindSafe for DefaultProcedureGenerator
impl Freeze for DefaultProcedureGenerator
impl Unpin for DefaultProcedureGenerator
impl UnsafeUnpin for DefaultProcedureGenerator
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