Method: Sip::Sipper#create_script_without_index

Defined in:
lib/sip/sipper.rb

#create_script_without_index(dbconf, tableconf, db) ⇒ Object

this is the case where there is no primary key index, so the whole table will need to be imported



40
41
42
43
44
45
46
47
# File 'lib/sip/sipper.rb', line 40

def create_script_without_index(dbconf, tableconf, db)
  Hive::run_hsql_create_table self, db, tableconf, :overwrite

  log "Importing all rows from table #{dbconf['dbname']}.#{tableconf['tablename']}"
  select = db.generate_command tableconf
  transpart_opts = generate_transpart_options(tableconf, db)
  @scripts << Utils::write_script(self, @slaves.first, select, dbconf['dbname'], tableconf['tablename'], transpart_opts)
end