postgresql_connection: Obtain a connection to a PostGreSQL database.

Description Usage Arguments Details Value

View source: R/postgresql_connection.R

Description

By default, this function will read from the 'development' environment.

Usage

1
2
postgresql_connection(database.yml, env = "development", verbose = TRUE,
  strict = TRUE)

Arguments

database.yml

character. The location of the database.yml file to use. This could, for example, be directory from a Rails project.

env

character. What environment to use. The default is '"development"'.

verbose

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

Details

Your database.yml should look like:

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

Value

PqConnection representing the activated PostGreSQL connection.


robertzk/berdie documentation built on May 27, 2019, 10:34 a.m.