R/sq_text.R

Defines functions sq_text

Documented in sq_text

#' Inline SQL Query
#'
#' @param text A character SQL query.
#'
#' @return An \code{sq} object.
#'
#' @export
sq_text <- function(text)
{
  if (!is_scalar_character(text))
    stop("Argument 'text' should be a scalar character value")

  structure(text, class = c("sq", "sql", "character"))
}
smbache/squr documentation built on May 15, 2021, 3:45 a.m.