collectable | R Documentation |
Wraps a timer around functions that pulls a lazy database query into memory.
collectable(x, qid = "query", format = "tibble")
x |
Dataset or lazy database query. |
qid |
Optional string query identifier. |
format |
Output format type, either via 'data.table', 'dtplyr', or 'tibble'. |
A queried database connection stored in local memory and the time it took to pull into memory. Alternatively provides the time to process a piped workflow or single function if the input dataset is not a lazy database connection.
## Not run:
dplyr::tbl(connection,
dbplyr::in_schema("SCHEMA",
"TABLE_NAME")) %>%
collectable(qid = "an impossible and certainly fake query",
format = 'tibble')
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.