require sslMode

This commit is contained in:
Patrick Schratz 2024-10-08 20:59:45 +02:00
commit 447e7791e5
Signed by: pat-s
GPG key ID: 3C6318841EF78925
2 changed files with 30 additions and 27 deletions

View file

@ -5,7 +5,8 @@ store_build_metadata <- function(
force = FALSE, error = NA, build_duration = NA, size = NA) {
con <- DBI::dbConnect(RPostgres::Postgres(),
dbname = "build_metadata", host = "r-binaries.devxy.io",
port = 15432, user = "r_binaries", password = Sys.getenv("PGPASS")
port = 15432, user = "r_binaries", password = Sys.getenv("PGPASS"),
sslmode = "require"
)
# Check if an entry with the same package_name and tag already exists

View file

@ -7,7 +7,8 @@
query_metadata_table <- function(table = "single_builds") {
con <- DBI::dbConnect(RPostgres::Postgres(),
dbname = "build_metadata", host = "r-binaries.devxy.io",
port = 15432, user = "r_binaries", password = Sys.getenv("PGPASS")
port = 15432, user = "r_binaries", password = Sys.getenv("PGPASS"),
sslmode = "require"
)
metadata <- tbl(con, table)
return(metadata)
@ -18,7 +19,8 @@ query_metadata_table <- function(table = "single_builds") {
list_metadata_tables <- function() {
con <- DBI::dbConnect(RPostgres::Postgres(),
dbname = "build_metadata", host = "r-binaries.devxy.io",
port = 15432, user = "r_binaries", password = Sys.getenv("PGPASS")
port = 15432, user = "r_binaries", password = Sys.getenv("PGPASS"),
sslmode = "require"
)
dbListTables(con)
}