diff --git a/R/db.R b/R/db.R new file mode 100644 index 0000000..906d4df --- /dev/null +++ b/R/db.R @@ -0,0 +1,10 @@ +#' @importFrom DBI dbConnect +#' @importFrom RPostgres Postgres +dbcon <- function() { + DBI::dbConnect(RPostgres::Postgres(), + dbname = "build_metadata", host = "postgres-arm-binaries-r.devxy.io", + port = 15432, user = "arm_binaries", password = Sys.getenv("PGPASS") + ) +} + +dbcon_mem <- memoise::memoise(dbcon)