connect_historic_db: Create a database connection to the historic database

View source: R/ems_duckdb.R

connect_historic_dbR Documentation

Create a database connection to the historic database

Description

This creates a DBI connection to the duckdb database that holds the historic data table. You should call disconnect_historic_db() when you are finished querying the database.

Usage

connect_historic_db(db_path = NULL)

Arguments

db_path

path to the duckdb database. In most cases it does not need to be specified as it uses the default location set by rems.

Details

See attach_historic_data() for examples.

Value

a DBIConnection object for communicating with the duckdb database

See Also

DBI::dbConnect()


bcgov/rems documentation built on Oct. 14, 2023, 3:04 a.m.