Class | RR::Syncers::OneWaySyncer |
In: |
lib/rubyrep/syncers/syncers.rb
|
Parent: | Object |
This syncer implements a one way sync. Syncer options relevant for this syncer:
* +:direction+: Sync direction. Possible values: * +:left+ * +:right+ * +:delete+: Default: false. If true, deletes in the target database all records _not_ existing in the source database. * +:update+: If true (default), update records in the target database if different. * +:insert+: If true (default), copy over records not existing in the target database.
source | [RW] | ID of source database (either :left or :right) |
source_record_index | [RW] | Array index to source row in case sync_difference type is :conflict. (As in that case the row parameter is an array of left and right records.) |
sync_helper | [RW] | The current SyncHelper object |
target | [RW] | ID of target database (either :left or :right) |
Initializes the syncer
* sync_helper: The SyncHelper object provided information and utility functions.
Called to sync the provided difference. See DirectTableScan#run for a description of the type and row parameters.