R/db_send.R

Defines functions db_send

Documented in db_send

#' Function to send a statements to a database. 
#' 
#' \code{db_send} is a wrapper for \code{DBI::dbSendQuery} but is vectorised 
#' over \code{statement}.
#' 
#' @author Stuart K. Grange
#' 
#' @param con Database connection. 
#' @param statement Statement to send to \code{con}. 
#' @param progress Type of progress bar to display. Default is \code{"none"}. 
#' 
#' @export
db_send <- function(con, statement, progress = "none") {
  
  .Defunct(new = "db_execute")
  
  # # Vectorise the function, used plyr here
  # plyr::l_ply(statement, function(x) DBI::dbSendQuery(con, x), 
  #             .progress = progress)
  
}
skgrange/databaser documentation built on April 21, 2024, 6:30 a.m.