qryflow_results()
retrieves the query results from a list returned by qryflow_run()
,
typically one that includes parsed and executed SQL chunks.
Arguments
- x
Results from
qryflow_run()
, usually containing a mixture ofqryflow_chunk
objects.- ...
Reserved for future use.
- simplify
Logical; if
TRUE
, simplifies the result to a single object if only one query chunk is present. Defaults toFALSE
.
Value
A named list of query results, or a single result object if simplify = TRUE
and only one result is present.
Examples
con <- example_db_connect(mtcars)
filepath <- example_sql_path("mtcars.sql")
obj <- qryflow_run(filepath, con)
results <- qryflow_results(obj)
DBI::dbDisconnect(con)