Struct rorm_sql::create_trigger::SQLCreateTrigger
source · pub struct SQLCreateTrigger { /* private fields */ }
Expand description
Representation of a trigger.
Implementations§
source§impl SQLCreateTrigger
impl SQLCreateTrigger
sourcepub fn if_not_exists(self) -> Self
pub fn if_not_exists(self) -> Self
Create the trigger only, if it does not exists
sourcepub fn add_statement(self, statement: String) -> Self
pub fn add_statement(self, statement: String) -> Self
Adds a statement to a create trigger operation
sourcepub fn for_each_row(self) -> Self
pub fn for_each_row(self) -> Self
Executes the given trigger statement for each row individually.