Description Usage Arguments Details See Also
Utility function that opens a database connection using the standard dbCfg
format for all configuration options.
1 | conf.dbCon(cfg)
|
cfg |
a named list of configuration options, often loaded from a flat configuration file using |
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.