View source: R/set_default_conn_name.R
set_default_conn_name | R Documentation |
Set/get the name of the default connection to use
set_default_conn_name(conn_name)
get_default_conn_name()
conn_name |
Character string. The name a connection |
get
returns the name of the default connection;
set
returns NULL
, invisibly.
library(sqlhelper)
connect(
system.file("examples/sqlhelper_db_conf.yml",
package="sqlhelper"),
exclusive = TRUE
)
connection_info()
get_default_conn_name()
set_default_conn_name("pool_sqlite")
connection_info()
get_default_conn_name()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.