connect_db
connect_db.Rd
To connect to the database
Usage
connect_db(
dbname = "postgres",
host = Sys.getenv("DB_HOST", unset = ""),
port = 6543,
user = Sys.getenv("DB_USER", unset = ""),
password = Sys.getenv("DB_PWD", unset = "")
)
Examples
if (interactive()) {
connect_db()
}