Learn R Programming

sqlhelper (version 0.2.1)

set_default_conn_name: 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()

Value

get returns the name of the default connection; set returns NULL, invisibly.

Arguments

conn_name

Character string. The name a connection

Examples

Run this code
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()

Run the code above in your browser using DataLab