connect_to_db: Connect to database

Description Usage Arguments Value Examples

View source: R/database_tools.R

Description

This function connects to the application database. It needs the database parameters to be entered as environment variables as OANALYSER_DB_HOST, OANALYSER_DB_PASS, OANALYSER_DB_USER, OANALYSER_DB_PORT.

Usage

1

Arguments

environment_file

the environment variable file to execute

Value

a connector object to a Postgresql database

Examples

1
2
3
4
5
## Not run: 

con <- connect_to_db()

## End(Not run)

benoitrauturier/oanalyser documentation built on Nov. 26, 2019, 7:55 a.m.