This function attempts to generate a connection using DBI::dbConnect(). By default, options are taken from a config.yml file which should contain fields for

  • driver

  • server

  • database

  • uid (username)

  • pwd (password)

  • trusted (usually 'yes')

connect_to_database(conf = config::get("database"))

Arguments

conf

List of config opts

Value

A connection