class SP::Duh::I18n::ExcelLoader

Public Class Methods

new(filename, pg_connection) click to toggle source
Calls superclass method
# File lib/sp/duh/i18n/excel_loader.rb, line 9
def initialize(filename, pg_connection)
  super(filename)
  @connection = pg_connection
end

Public Instance Methods

clear() click to toggle source
# File lib/sp/duh/i18n/excel_loader.rb, line 14
def clear
  @connection.exec "DELETE FROM public.i18n"
end
reload() click to toggle source
# File lib/sp/duh/i18n/excel_loader.rb, line 18
def reload
  export_table_to_pg(@connection,  'public', '', 'i18n')
end