dbConnect(), but only checks validity without actually returning
a connection object. The default implementation opens a connection
and disconnects on success, but individual backends might implement
a lighter-weight check.
This documentation page describes the generics. Refer to the documentation pages linked below for the documentation for the methods that are implemented in various backend packages.
A scalar logical. If
"reason" attribute indicates
a reason for failure.
# SQLite only needs a path to the database. (Here, ":memory:" is a special # path that creates an in-memory database.) Other database drivers # will require more details (like user, password, host, port, etc.) dbCanConnect(RSQLite::SQLite(), ":memory:") #>  TRUE