R/where_or_and.R

Defines functions where_or_and

Documented in where_or_and

#' where_or_and
#'
#' @param sql_text sql text string
#'
#' @return
#' @export
#'
where_or_and <- function(sql_text) {

  if (grepl('WHERE', sql_text)){
    return(' AND ')
  } else {
    return(' WHERE ')
  }

}
jkennel/transducer documentation built on Feb. 1, 2024, 9:45 a.m.