qryflow_execute | R Documentation |
qryflow_execute()
takes a parsed workflow object (as returned by qryflow_parse()
),
executes each chunk (e.g., @query
, @exec
), and collects the results and timing metadata.
This function is used internally by qryflow_run()
, but can be called directly in concert with qryflow_parse()
if you want
to manually control parsing and execution.
qryflow_execute(x, con, ..., source = NULL)
x |
A parsed qryflow workflow object, typically created by |
con |
A database connection from |
... |
Reserved for future use. |
source |
Optional; a character string indicating the source SQL to include in metadata. |
An object of class qryflow_result
, containing executed chunks with results and a meta
field
that includes timing and source information.
qryflow_run()
, qryflow_parse()
con <- example_db_connect(mtcars)
filepath <- example_sql_path("mtcars.sql")
parsed <- qryflow_parse(filepath)
executed <- qryflow_execute(parsed, con, source = filepath)
DBI::dbDisconnect(con)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.