Skip to contents

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()
#> <SQLiteConnection>
#>   Path: 
#>   Extensions: TRUE