Module: Mongify::Translation::Process

Included in:
Mongify::Translation
Defined in:
lib/mongify/translation/process.rb

Instance Method Summary collapse

Instance Method Details

#process(sql_connection, no_sql_connection) ⇒ Object

Does the actual act of processing the translation. Takes in both a sql connection and a no sql connection



11
12
13
14
15
16
17
18
19
20
# File 'lib/mongify/translation/process.rb', line 11

def process(sql_connection, no_sql_connection)
  prepare_connections(sql_connection, no_sql_connection)
  setup_db_index
  copy_data
  update_reference_ids
  copy_embedded_tables
  copy_polymorphic_tables
  remove_pre_mongified_ids
  nil
end