View source: R/connection_info.R
connection_info | R Documentation |
Provides information about created connections.
connection_info(name_str = ".*", exact = TRUE)
name_str |
A regular expression to be used to identify connection names to include. The default ('.*') returns all of them. |
exact |
TRUE or FALSE. Should |
Null, or a tibble with 1 row per identified connection and the following fields:
identifier (character)
a description of the connection, if found in the conf file (character)
is this connection valid and live? (logical)
the name of the driver function (character)
the string used to parameterize the connection (character)
is this a pool connection? (logical)
If no connection names matched name_str
, the tibble will be empty. If no
connections have been configured (e.g. connect()
has not been called),
NULL
is returned.
library(sqlhelper)
connect(
system.file(
"examples/sqlhelper_db_conf.yml",
package="sqlhelper"
),
exclusive=TRUE
)
connection_info()
connection_info("pool_sqlite")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.