#' 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 ')
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.