Note: we are moving away from global options to options in the DB handle.
getDBOption(db, optname, default, connection_options = list())
database connection handle.
character, single option name.
what to return if not set.
name list of per connection options.
option value
if(requireNamespace("DBI", quietly = TRUE) && requireNamespace("RSQLite", quietly = TRUE)) {
my_db <- DBI::dbConnect(RSQLite::SQLite(), ":memory:")
print(getDBOption(my_db, "use_DBI_dbExecute"))
DBI::dbDisconnect(my_db)
}
#> NULL