database_connect: Database connect

Description Usage Arguments Details Value Examples

Description

This function reads the file keys.json at the root of the directory and create a connection to the postgre database.

Usage

1
database_connect(file = "keys.json")

Arguments

file

name of the file where keys are stored

Details

The file keys.json should have the following format :

"host": ["127.0.0.1"], "dbname": ["databasename"], "port": ["5433"], "id":["login"], "pw":["password"]

Value

a connection to the signauxfaible database

Examples

1
database_signauxfaibles <- database_connect()

SGMAP-AGD/opensignauxfaibles documentation built on May 15, 2019, 1:26 p.m.