Learn R Programming

sqlhelper (version 0.2.1)

default_conn: Return the default connection

Description

A convenience wrapper around live_connection() and get_default_conn_name()

Usage

default_conn()

Arguments

Value

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

Examples

Run this code
library(sqlhelper)

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

default_conn()

Run the code above in your browser using DataLab