Method: Egis::Database#execute_query

Defined in:
lib/egis/database.rb

#execute_query(query, **options) ⇒ Egis::QueryStatus

Executes Athena query. By default, queries are being executed asynchronously.

Parameters:

  • query (String)

    SQL query to execute

  • async (Boolean)

    Decide whether you want to run query asynchronously or block execution until it finishes

  • work_group (String)

    Change Athena work group the query will be executed in.

  • database (String)

    Run query in the context of a specific database (implicit table references are expected to be in given database).

  • output_location (String)

    S3 url of the desired output location. By default, Athena uses location defined in by workgroup.

Returns:



87
88
89
# File 'lib/egis/database.rb', line 87

def execute_query(query, **options)
  client.execute_query(query, **{database: name, **options})
end