Skip to content

Commit

Permalink
one step to retrieve parameters
Browse files Browse the repository at this point in the history
close #134
  • Loading branch information
wibeasley committed Jan 8, 2024
1 parent 7cf5432 commit 494c6de
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Package: OuhscMunge
Title: Data Manipulation Operations
Description: Data manipulation operations frequently used in OUHSC BBMC
projects.
Version: 0.2.0.9016
Version: 0.2.0.9017
Authors@R: person("Will", "Beasley", email="[email protected]", role=c("aut", "cre"),
comment = c(ORCID = "0000-0002-5613-5006"))
URL: https://github.com/OuhscBbmc/OuhscMunge, http://ouhsc.edu/bbmc/
Expand Down
9 changes: 5 additions & 4 deletions R/retrieve-key-value.R
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,13 @@ retrieve_key_value <- function(
# browser()
base::tryCatch(
expr = {
query <- DBI::dbSendQuery(channel, sql)
bind <- DBI::dbBind(query, list(project_name, key))
ds_value <- DBI::dbFetch(query)
ds_value <- DBI::dbGetQuery(channel, sql, params = list(project_name, key))
# query <- DBI::dbSendQuery(channel, sql, immediate = FALSE)
# bind <- DBI::dbBind(query, list(project_name, key))
# ds_value <- DBI::dbFetch(query)

}, finally = {
if (exists("query")) DBI::dbClearResult(query)
# if (exists("query")) DBI::dbClearResult(query)
# if (exists("bind")) DBI::dbClearResult(bind)
if (close_channel_on_exit) DBI::dbDisconnect(channel)
}
Expand Down

0 comments on commit 494c6de

Please sign in to comment.