Method: RR::ReplicationInitializer#change_log_exists?

Defined in:
lib/rubyrep/replication_initializer.rb

#change_log_exists?(database) ⇒ Boolean

Returns true if the change log exists in the specified database.

  • database: either :left or :right

Returns:

  • (Boolean)


104
105
106
# File 'lib/rubyrep/replication_initializer.rb', line 104

def change_log_exists?(database)
  session.send(database).tables.include? "#{options[:rep_prefix]}_pending_changes"
end