style: apply air and prettier formatting repo-wide
This commit is contained in:
parent
cf851c1c30
commit
251bba8f23
1 changed files with 555 additions and 259 deletions
|
|
@ -6,9 +6,13 @@ archived <- quickcode::archivedPkg() |>
|
|||
pull(name)
|
||||
|
||||
# Query all distinct pkgs in the DB
|
||||
con <- DBI::dbConnect(RPostgres::Postgres(),
|
||||
dbname = "build_metadata", host = "r-binaries.devxy.io",
|
||||
port = 15432, user = "r_binaries", password = Sys.getenv("PGPASS"),
|
||||
con <- DBI::dbConnect(
|
||||
RPostgres::Postgres(),
|
||||
dbname = "build_metadata",
|
||||
host = "r-binaries.devxy.io",
|
||||
port = 15432,
|
||||
user = "r_binaries",
|
||||
password = Sys.getenv("PGPASS"),
|
||||
sslmode = "require"
|
||||
)
|
||||
|
||||
|
|
@ -22,7 +26,9 @@ to_process <- pkgs_db[pkgs_db %in% archived]
|
|||
|
||||
# for all matches, set 'removed = TRUE'
|
||||
sapply(to_process, function(.x) {
|
||||
DBI::dbExecute(con, "UPDATE single_builds SET removed = 'TRUE' where name = $1",
|
||||
DBI::dbExecute(
|
||||
con,
|
||||
"UPDATE single_builds SET removed = 'TRUE' where name = $1",
|
||||
params = list(.x)
|
||||
)
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in a new issue