hasEnabledInsteadOfTrigger property

bool get hasEnabledInsteadOfTrigger

Whether an enabled INSTEAD OF trigger sits on this table.

Stronger than hasEnabledTrigger: with one of these, what an insert actually stored is whatever the trigger body decided, so no readback strategy can promise to return the stored row.

Implementation

bool get hasEnabledInsteadOfTrigger =>
    triggers.any((t) => !t.isDisabled && t.isInsteadOf);