set_default_conn_name {sqlhelper} | R Documentation |
Set/get the name of the default connection to use
Description
Set/get the name of the default connection to use
Usage
set_default_conn_name(conn_name)
get_default_conn_name()
Arguments
conn_name |
Character string. The name a connection |
Value
get
returns the name of the default connection;
set
returns NULL
, invisibly.
Examples
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()
[Package sqlhelper version 0.2.1 Index]