update DB address
This commit is contained in:
parent
dec6ae08e6
commit
62f4dfdf8c
3 changed files with 5 additions and 5 deletions
2
R/db.R
2
R/db.R
|
|
@ -3,7 +3,7 @@
|
||||||
#' @export
|
#' @export
|
||||||
dbcon <- function() {
|
dbcon <- function() {
|
||||||
DBI::dbConnect(RPostgres::Postgres(),
|
DBI::dbConnect(RPostgres::Postgres(),
|
||||||
dbname = "build_metadata", host = "postgres-arm-binaries-r.devxy.io",
|
dbname = "build_metadata", host = "r-binaries.devxy.io",
|
||||||
port = 15432, user = "arm_binaries", password = Sys.getenv("PGPASS")
|
port = 15432, user = "arm_binaries", password = Sys.getenv("PGPASS")
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ store_build_metadata <- function(
|
||||||
package_name, tag, platform, error_occurred,
|
package_name, tag, platform, error_occurred,
|
||||||
force = FALSE, error = NA, build_duration = NA, size = NA) {
|
force = FALSE, error = NA, build_duration = NA, size = NA) {
|
||||||
con <- DBI::dbConnect(RPostgres::Postgres(),
|
con <- DBI::dbConnect(RPostgres::Postgres(),
|
||||||
dbname = "build_metadata", host = "postgres-arm-binaries-r.devxy.io",
|
dbname = "build_metadata", host = "r-binaries.devxy.io",
|
||||||
port = 15432, user = "arm_binaries", password = Sys.getenv("PGPASS")
|
port = 15432, user = "arm_binaries", password = Sys.getenv("PGPASS")
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
@ -47,7 +47,7 @@ store_build_metadata <- function(
|
||||||
#' @importFrom dplyr group_by summarise filter n
|
#' @importFrom dplyr group_by summarise filter n
|
||||||
build_metadata_summary <- function(package_name, platform) {
|
build_metadata_summary <- function(package_name, platform) {
|
||||||
con <- DBI::dbConnect(RPostgres::Postgres(),
|
con <- DBI::dbConnect(RPostgres::Postgres(),
|
||||||
dbname = "build_metadata", host = "postgres-arm-binaries-r.devxy.io",
|
dbname = "build_metadata", host = "r-binaries.devxy.io",
|
||||||
port = 15432, user = "arm_binaries", password = Sys.getenv("PGPASS")
|
port = 15432, user = "arm_binaries", password = Sys.getenv("PGPASS")
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
#' @export
|
#' @export
|
||||||
query_metadata_table <- function(table = "single_builds") {
|
query_metadata_table <- function(table = "single_builds") {
|
||||||
con <- DBI::dbConnect(RPostgres::Postgres(),
|
con <- DBI::dbConnect(RPostgres::Postgres(),
|
||||||
dbname = "build_metadata", host = "postgres-arm-binaries-r.devxy.io",
|
dbname = "build_metadata", host = "r-binaries.devxy.io",
|
||||||
port = 15432, user = "arm_binaries", password = Sys.getenv("PGPASS")
|
port = 15432, user = "arm_binaries", password = Sys.getenv("PGPASS")
|
||||||
)
|
)
|
||||||
metadata <- tbl(con, table)
|
metadata <- tbl(con, table)
|
||||||
|
|
@ -17,7 +17,7 @@ query_metadata_table <- function(table = "single_builds") {
|
||||||
#' @export
|
#' @export
|
||||||
list_metadata_tables <- function() {
|
list_metadata_tables <- function() {
|
||||||
con <- DBI::dbConnect(RPostgres::Postgres(),
|
con <- DBI::dbConnect(RPostgres::Postgres(),
|
||||||
dbname = "build_metadata", host = "postgres-arm-binaries-r.devxy.io",
|
dbname = "build_metadata", host = "r-binaries.devxy.io",
|
||||||
port = 15432, user = "arm_binaries", password = Sys.getenv("PGPASS")
|
port = 15432, user = "arm_binaries", password = Sys.getenv("PGPASS")
|
||||||
)
|
)
|
||||||
dbListTables(con)
|
dbListTables(con)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue