R/dbExecute_DBIConnection_character.R

Defines functions dbExecute_DBIConnection_character

Documented in dbExecute_DBIConnection_character

#' @rdname hidden_aliases
#' @usage NULL
dbExecute_DBIConnection_character <- function(conn, statement, ...) {
  rs <- dbSendStatement(conn, statement, ...)
  on.exit(dbClearResult(rs))
  dbGetRowsAffected(rs)
}
#' @rdname hidden_aliases
#' @export
setMethod("dbExecute", signature("DBIConnection", "character"), dbExecute_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.