#' 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)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.