Build a canonical name for a db connection class.
rq_connection_name(db)
db | Database connection handle. |
---|
character, key version of handle for option lookups.
if(requireNamespace("DBI", quietly = TRUE) && requireNamespace("RSQLite", quietly = TRUE)) { my_db <- DBI::dbConnect(RSQLite::SQLite(), ":memory:") print(rq_connection_name(my_db)) DBI::dbDisconnect(my_db) }#> [1] "SQLiteConnection"