lib/rubyrep/configuration.rb in rubyrep-1.0.5 vs lib/rubyrep/configuration.rb in rubyrep-1.0.6

- old
+ new

@@ -110,9 +110,23 @@ # E. g. with a +sequence_increment+ of 2, an offset of 0 will produce even, # an offset of 1 will produce odd numbers. # * :+replication_interval+: time in seconds between replication runs # * :+database_connection_timeout+: # Time in seconds after which database connections time out. + # * :+:after_infrastructure_setup+: + # A Proc that is called after the replication infrastructure tables are + # set up. Useful to e. g. tweak the access settings for the table. + # The block is called with the current Session object. + # The block is called every time replication is started, even if the + # the infrastructure tables already existed. + # + # Example of an :+after_infrastructure_setup+ handler: + # lambda do |session| + # [:left, :right].each do |database| + # session.send(left).execute \ + # "GRANT SELECT, UPDATE, INSERT ON rr_pending_changes TO scott" + # end + # end attr_reader :options # Merges the specified +options+ hash into the existing options def options=(options) @options ||= {} \ No newline at end of file