Class RR::TriggerModeSwitcher
In: lib/rubyrep/trigger_mode_switcher.rb
Parent: Object

Switches rubyrep triggers between "exclude rubyrep activity" modes.

Methods

Attributes

session  [RW]  The active Session

Public Class methods

Public Instance methods

Switches the trigger of the named table to "exclude rubyrep activity" mode. Only switches if it didn‘t do so already for the table.

  • database: either :left or :right
  • table: name of the table

Restores all switched triggers to not exclude rubyrep activity

Does the actual switching of the trigger mode.

  • database: either :left or :right
  • table: name of the table
  • exclude_rr_activity: the new trigger mode (either true or false)

Keeps track of all the triggers. This is a hash with 2 keys: :left and :right. Each of these entries is a Set containing table names.

[Validate]