Skip to main content

TriggerGenerator

Trait TriggerGenerator 

Source
pub trait TriggerGenerator {
    // Required methods
    fn output_triggers(&self);
    fn output_triggers_for_table(&self, table: &Table);
}

Required Methods§

Source

fn output_triggers(&self)

Source

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).

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§