Time/Date Stamping
Rule.early_row_event_all_classes
is provided for generic events which apply to all tables.
These are intended to support familiar patterns of time, date, and user stamping. For example:
Notes:
- The initiating event is the insert/update of any row
- We declare
Rule.early_row_event_all_classes
to invokehandle_all
- This is equivalent to an
Event
rule, but applies toall classes
- This is equivalent to an
- Note the use of
LogicRow
services, such asnest_level
- Find other services with code completion
- This pattern can be applied to other forms of stamping, such as created_by / updated_by
- Alter the code to reflect your own naming conventions