connectGDB: Connect to GDB

Description Usage Arguments Details Value Author(s)

View source: R/db_utils.R

Description

Connect to GDB

Usage

1
connectGDB(db_path, driver)

Arguments

db_path

the full path to the database. Can be searched for using find_gdb()

driver

the result of RSQLite::SQLite()

Details

This is a convienence wrapper which first checks if the database exists before attempting to open it. This avoids sqlite creating a new database if the path is misspecified.

Value

a connection to the specified database

Author(s)

Matt Espe


fishsciences/ybt documentation built on March 11, 2021, 8:45 a.m.