dbConnect_klimageo: Connect to klimageo database

Description Usage Arguments Value Examples

View source: R/db_connection.R

Description

Connect to the klimegeo database. The connection is done via the RPostgres package.

Usage

1
2
3
4
5
6
7
dbConnect_klimageo(
  dbname = "klimageo",
  host = "blobdb.cms.hu-berlin.de",
  port = 5432,
  user = NULL,
  password = NULL
)

Arguments

dbname

Database name.

host, port

Host and port.

user, password

User name and password. If NULL, will be retrieved from PGUSER and PGPASSWORD envvars, or from the appropriate line in ~/.pgpass. See http://www.postgresql.org/docs/9.6/static/libpq-pgpass.html for more details.

Value

An S4 object that inherits from DBIConnection. This object is used to communicate with the database engine.

Examples

1
2
3
4
5
## Not run: 
con <- dbConnect_klimageo()
dbDisconnect(con)

## End(Not run)

sebschub/klimageodb documentation built on Sept. 25, 2021, 4:16 p.m.