database_query_from_json: database_query_from_json

View source: R/database_query.R

database_query_from_jsonR Documentation

database_query_from_json

Description

Executes an EMS database query for the supplied json query file.

Usage

database_query_from_json(
  data_source_id,
  json_file,
  efoqa_connection = connect_to_efoqa()
)

Arguments

data_source_id

String for EMS data source / database ID. For example FDW Flights = "[ems-core][entity-type][foqa-flights]"

json_file

The path to the query you want to run in json file form. For example "./test_query.json"

efoqa_connection

Optional if you want to re-use an existing connection to the API.

Value

The results of the EMS database query as a dataframe. Note that no type conversions are performed. Result types will depend on the 'format' flag in the query.

Examples

## Not run: 
database_query_from_json("[ems-core][entity-type][foqa-flights]",
  json_file = "./my_query_file.json")

## End(Not run)



ge-flight-analytics/refoqa documentation built on Oct. 15, 2024, 7:15 a.m.