Build a canonical name for a db connection class.

rq_connection_name(db)

Arguments

db

Database connection handle.

Value

character, key version of handle for option lookups.

Examples

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"