R/dbGetQuery_DBIConnection_character.R

Defines functions dbGetQuery_DBIConnection_character

Documented in dbGetQuery_DBIConnection_character

#' @rdname hidden_aliases
#' @param n Number of rows to fetch, default -1
#' @usage NULL
dbGetQuery_DBIConnection_character <- function(conn, statement, ..., n = -1L) {
  rs <- dbSendQuery(conn, statement, ...)
  on.exit(dbClearResult(rs))

  dbFetch(rs, n = n, ...)
}
#' @rdname hidden_aliases
#' @export
setMethod("dbGetQuery", signature("DBIConnection", "character"), dbGetQuery_DBIConnection_character)

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.