pub struct DefaultTriggerGenerator { /* private fields */ }Implementations§
Source§impl DefaultTriggerGenerator
impl DefaultTriggerGenerator
pub fn new(context: GeneratorContext) -> Self
pub fn context(&self) -> &GeneratorContext
Trait Implementations§
Source§impl TriggerGenerator for DefaultTriggerGenerator
impl TriggerGenerator for DefaultTriggerGenerator
fn output_triggers(&self)
Source§fn output_triggers_for_table(&self, _table: &Table)
fn output_triggers_for_table(&self, _table: &Table)
Regenerates the full (idempotent) trigger set for a single table - used by the
migration generator when only that table’s custom triggers changed, so it doesn’t
have to re-derive the combined relation/aggregation/custom-trigger logic that
output_triggers already knows how to produce. No-op by default (SQLite has no
trigger support here, matching output_triggers).Auto Trait Implementations§
impl !RefUnwindSafe for DefaultTriggerGenerator
impl !Send for DefaultTriggerGenerator
impl !Sync for DefaultTriggerGenerator
impl !UnwindSafe for DefaultTriggerGenerator
impl Freeze for DefaultTriggerGenerator
impl Unpin for DefaultTriggerGenerator
impl UnsafeUnpin for DefaultTriggerGenerator
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