rq_connection_tests | R Documentation |
These settings are estimated by experiments. This is not the full set of options- but just the ones tested here.
rq_connection_tests(db, ..., overrides = NULL, use_advice = TRUE)
db |
database connection handle. |
... |
force later arguments to bind by name. |
overrides |
named character vector or list, options (just name, not DB qualification) to force |
use_advice |
logical if TRUE incorporate hard-coded advice. |
Note: tests are currently run in the default schema. Also it is normal to see some warning/error messages as different database capabilities are tested.
named list of options
rq_connection_advice
if(requireNamespace("DBI", quietly = TRUE) && requireNamespace("RSQLite", quietly = TRUE)) {
my_db <- DBI::dbConnect(RSQLite::SQLite(), ":memory:")
print(rq_connection_name(my_db))
print(rq_connection_tests(my_db,
overrides = c("use_DBI_dbExistsTable" = FALSE)))
# the following would set options
# print(options(rq_connection_tests(my_db)))
DBI::dbDisconnect(my_db)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.