Method: Egis::QueryStatus#fetch_result

Defined in:
lib/egis/query_status.rb

#fetch_result(schema: []) ⇒ Array

Download query result.

By default, Egis will just parse output CSV and return array of string arrays. Additionally, you can pass expected query result column types to parse them into Ruby objects accordingly.

Parameters:

  • schema (Array) (defaults to: [])

    Array with expected query column types

Returns:

  • (Array)

    Array of row values



72
73
74
75
# File 'lib/egis/query_status.rb', line 72

def fetch_result(schema: [])
  output = output_downloader.download(output_location)
  output_parser.parse(output, schema)
end