get database connection

get_db_con(host = "localhost", port = 5432, dbname = "am",
  user = "admin", password = "CHANGEME!")

Arguments

host

defaults to "localhost"

port

defaults to 5432

dbname

defaults to "am"

user

defaults to "admin"

password

defaults to "CHANGEME!"

Value

DBI::dbConnect()

Examples

con <- get_db_con(password=readLines("~/private/pg_pass"))