default_conn: Return the default connection

View source: R/default_conn.R

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


sqlhelper documentation built on March 26, 2026, 5:09 p.m.