set_default_conn_name: Set/get the name of the default connection to use

View source: R/set_default_conn_name.R

set_default_conn_nameR 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()


sqlhelper documentation built on May 29, 2024, 4:29 a.m.