Skip to content

Commit

Permalink
fixed db args passing in sql query function
Browse files Browse the repository at this point in the history
  • Loading branch information
smeylan authored Aug 28, 2024
1 parent cc8dc07 commit 45ad43f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions R/peekbankr.R
Original file line number Diff line number Diff line change
Expand Up @@ -603,9 +603,8 @@ unpack_aux_data <- function(df) {
#' get_sql_query("SELECT * FROM datasets")
#' }

get_sql_query <- function(sql_query_string, connection = NULL,
db_version = "current", db_args = NULL) {
con <- resolve_connection(connection, db_version, db_args)
get_sql_query <- function(sql_query_string, connection = NULL) {
con <- resolve_connection(connection)
if (is.null(con)) return()

returned_sql_query <- dplyr::tbl(con, dplyr::sql(sql_query_string)) %>%
Expand Down

0 comments on commit 45ad43f

Please sign in to comment.