add db helper
This commit is contained in:
parent
8e07548111
commit
f0b5b98f3e
1 changed files with 10 additions and 0 deletions
10
R/db.R
Normal file
10
R/db.R
Normal file
|
|
@ -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)
|
||||
Loading…
Reference in a new issue