class DBA::Pull
Public Instance Methods
call(table, url)
click to toggle source
# File lib/dba/pull.rb, line 2 def call(table, url) self.table_name = table dataset = database[table_name] other_database = Sequel.connect(url) database.transaction do other_database[table_name].each { |row| dataset.insert(row) } end end