trigger method
TableBuilder<Key>
trigger(
- String sql(
- Table table
- required String name,
- required TriggerVerb verb,
- TriggerTemporality temporality = TriggerTemporality.before,
Implementation
TableBuilder<Key> trigger(
String Function(Table table) sql, {
required String name,
required TriggerVerb verb,
TriggerTemporality temporality = TriggerTemporality.before,
}) =>
this..sqlBuilders.add((table) => TriggerBuilder(table.name, name, verb: verb, temporality: temporality).sql(sql(table)));