conf.dbCon: Get a database connection

Description Usage Arguments Details See Also

View source: R/util-dbUtil.R

Description

Utility function that opens a database connection using the standard dbCfg format for all configuration options.

Usage

1

Arguments

cfg

a named list of configuration options, often loaded from a flat configuration file using dbCfg.

Details

conf.dbCon is called by passing in a names list that contains dbType providing the name of the desired database driver, which is passed directly into DBI::dbDriver to get an instance of the required driver. The rest of the parameters are driver specific, but typically include host, user, password, and dbname. These are passed as arguments into a call to DBI::dbConnect, using the named driver to get a database connection and return it.

See Also

dbDfg, run.query


ConvergenceDA/visdom documentation built on May 6, 2019, 12:51 p.m.