Method: Migratrix::Extractions::Extraction#process_source

Defined in:
lib/migratrix/extractions/extraction.rb

#process_source(source, options) ⇒ Object



31
32
33
34
35
36
37
38
39
40
41
# File 'lib/migratrix/extractions/extraction.rb', line 31

def process_source(source, options)
  if options[:where]
    options[:where].each do |where|
      source = handle_where(source, where)
    end
  end
  source = handle_order(source, options[:order]) if options[:order]
  source = handle_limit(source, options[:limit]) if options[:limit]
  source = handle_offset(source, options[:offset]) if options[:offset]
  source
end