Skip to contents

get connection, but also ensure it has at least one of the required tables

Usage

mhw_connect(duckdbfilepath, required_table_name = "ensembles")

Arguments

duckdbfilepath

posix path to .duckdb file

required_table_name

name of table that must be in db to check for

Value

duckdb DBI database connection object for use in DBI::dbGetQuery, etc or NA if not found