rq_connection_tests {rquery} | R Documentation |
Try and test database for some option settings.
Description
These settings are estimated by experiments. This is not the full set of options- but just the ones tested here.
Usage
rq_connection_tests(db, ..., overrides = NULL, use_advice = TRUE)
Arguments
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. |
Details
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.
Value
named list of options
See Also
Examples
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)
}
[Package rquery version 1.4.99 Index]