default_conn {sqlhelper}R Documentation

Return the default connection

Description

A convenience wrapper around live_connection() and get_default_conn_name()

Usage

default_conn()

Value

A database connection returned by DBI::dbConnect() or pool::dbPool()

Examples

library(sqlhelper)

connect(
    system.file(
        "examples/sqlhelper_db_conf.yml",
        package="sqlhelper"
        ),
    exclusive=TRUE
   )

default_conn()

[Package sqlhelper version 0.2.1 Index]