db_connection: Obtain a connection to a database.

Description Usage Arguments Details Value

Description

Your database.yml should look like:

Usage

1
db_connection(database.yml, env, verbose = TRUE)

Arguments

database.yml

character. The location of the database.yml file to use. This could, for example, some file in the config directory.

env

character. What environment to use from the database.yml. In the example database.yml, the environment is development.

verbose

logical. Whether or not to print messages indicating loading is in progress. Defaults to TRUE.

Details

development: adapter: PostgreSQL username: <username> password: <password> database: <name> host: <domain> port: <port #>

Value

the database connection specified by your database.yml file.


avantcredit/dbtest documentation built on May 11, 2019, 4:06 p.m.