Class | RR::ReplicationDifference |
In: |
lib/rubyrep/replication_difference.rb
|
Parent: | Object |
Describes a (record specific) difference between both databases as identifed via change log.
OTHER_SIDE | = | { :left => :right, :right => :left | Shortcut to calculate the "other" database. | |
DIFF_TYPES | = | { :insert => {:insert => :conflict, :update => :conflict, :delete => :conflict, :no_change => :left}, :update => {:insert => :conflict, :update => :conflict, :delete => :conflict, :no_change => :left}, :delete => {:insert => :conflict, :update => :conflict, :delete => :no_change, :no_change => :left}, :no_change => {:insert => :right, :update => :right, :delete => :right, :no_change => :no_change} | Resulting diff type based on types of left changes (outer hash) and right changes (inner hash) |
second_chance | -> | second_chance? |
loaded | [W] | Should be set to true if this ReplicationDifference instance was successfully loaded. |
loaders | [RW] | The current LoggedChangeLoaders instance |
second_chance | [RW] | Is set to true if first replication attempt failed but it should be tried again later |
type | [RW] |
The type of the difference. Either
|
Creates a new ReplicationDifference instance. loaders is teh current LoggedChangeLoaders instance