R/sqlParseVariables_DBIConnection.R

Defines functions sqlParseVariables_DBIConnection

Documented in sqlParseVariables_DBIConnection

#' @rdname hidden_aliases
#' @usage NULL
sqlParseVariables_DBIConnection <- function(conn, sql, ...) {
  sqlParseVariablesImpl(
    sql,
    list(
      sqlQuoteSpec('"', '"'),
      sqlQuoteSpec("'", "'")
    ),
    list(
      sqlCommentSpec("/*", "*/", TRUE),
      sqlCommentSpec("--", "\n", FALSE)
    )
  )
}
#' @rdname hidden_aliases
#' @export
setMethod("sqlParseVariables", signature("DBIConnection"), sqlParseVariables_DBIConnection)

Try the DBI package in your browser

Any scripts or data that you put into this service are public.

DBI documentation built on June 22, 2024, 9:41 a.m.