configDB: configDB

Description Usage Arguments Value Examples

Description

Function responsible for configuring the global class that has the database information

Usage

1
configDB(host, port, user, password, dbname)

Arguments

host

(character) - host of server

port

(character) - port of server

user

(character) - database user

password

(character) - database password

dbname

(character) - database name

Value

Object with Information for connections

Examples

1
2
3
4
5
6
7
8
configDB("localhost", "5432", "postgres", "", "db_accidents")
configDB("localhost", "5432", "postgres", "1234", "db_accidents")

## Not run: 
configDB("", 5432, senha, "db_accidents")
configDB(local, 5432, postgres, 123, "db_accidents")

## End(Not run)

betonr/rPostgis documentation built on May 6, 2019, 5:59 p.m.