Sha256: 65d122670b4434e045ac21e2aa1adc636af21de4f0c4a7203937ff6226b9d92a

Contents?: true

Size: 872 Bytes

Versions: 17

Compression:

Stored size: 872 Bytes

Contents

module RR

  # Replication extenders are modules that provide database specific functionality
  # required for replication. They are mixed into ActiveRecord database connections.
  # This module itself only provides functionality to register and retrieve
  # such extenders.
  module ReplicationExtenders
    # Returns a Hash of currently registered replication extenders.
    # (Empty Hash if no replication extenders were defined.)
    def self.extenders
      @extenders ||= {}
      @extenders
    end

    # Registers one or multiple replication extender.
    # extender is a Hash with
    #   key::   The adapter symbol as used by ActiveRecord::Connection Adapters, e. g. :postgresql
    #   value:: Name of the module implementing the replication extender
    def self.register(extender)
      @extenders ||= {}
      @extenders.merge! extender
    end
  end
end


Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
rubyrep-2.0.1 lib/rubyrep/replication_extenders/replication_extenders.rb
rubyrep-2.0.0 lib/rubyrep/replication_extenders/replication_extenders.rb
andyjeffries-rubyrep-1.2.1 lib/rubyrep/replication_extenders/replication_extenders.rb
rubyrep-1.2.0 lib/rubyrep/replication_extenders/replication_extenders.rb
rubyrep-1.1.2 lib/rubyrep/replication_extenders/replication_extenders.rb
rubyrep-1.1.1 lib/rubyrep/replication_extenders/replication_extenders.rb
rubyrep-1.1.0 lib/rubyrep/replication_extenders/replication_extenders.rb
rubyrep-1.0.9 lib/rubyrep/replication_extenders/replication_extenders.rb
rubyrep-1.0.8 lib/rubyrep/replication_extenders/replication_extenders.rb
rubyrep-1.0.3 lib/rubyrep/replication_extenders/replication_extenders.rb
rubyrep-1.0.4 lib/rubyrep/replication_extenders/replication_extenders.rb
rubyrep-1.0.5 lib/rubyrep/replication_extenders/replication_extenders.rb
rubyrep-1.0.6 lib/rubyrep/replication_extenders/replication_extenders.rb
rubyrep-1.0.7 lib/rubyrep/replication_extenders/replication_extenders.rb
rubyrep-1.0.1 lib/rubyrep/replication_extenders/replication_extenders.rb
rubyrep-1.0.0 lib/rubyrep/replication_extenders/replication_extenders.rb
rubyrep-1.0.2 lib/rubyrep/replication_extenders/replication_extenders.rb