Skip to content

Commit

Permalink
remove dupe
Browse files Browse the repository at this point in the history
- Remove redundant declaration of transaction methods (#110, @@bborgesr).
  • Loading branch information
Kirill Müller committed Jun 8, 2016
1 parent 148b08e commit 2f60206
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 74 deletions.
47 changes: 0 additions & 47 deletions R/DBConnection.R
Original file line number Diff line number Diff line change
Expand Up @@ -311,50 +311,3 @@ setGeneric("dbRemoveTable",
def = function(conn, name, ...) standardGeneric("dbRemoveTable"),
valueClass = "logical"
)

#' Begin/commit/rollback SQL transactions
#'
#' Not all database engines implement transaction management, in which case
#' these methods should not be implemented for the specific
#' \code{\linkS4class{DBIConnection}} subclass.
#'
#' @section Side Effects:
#' The current transaction on the connections \code{con} is committed or rolled
#' back.
#'
#' @inheritParams dbDisconnect
#' @return a logical indicating whether the operation succeeded or not.
#' @examples
#' \dontrun{
#' ora <- dbDriver("Oracle")
#' con <- dbConnect(ora)
#' rs <- dbSendQuery(con,
#' "delete * from PURGE as p where p.wavelength<0.03")
#' if(dbGetInfo(rs, what = "rowsAffected") > 250){
#' warning("dubious deletion -- rolling back transaction")
#' dbRollback(con)
#' }
#' }
#' @name transactions
NULL

#' @export
#' @rdname transactions
setGeneric("dbBegin",
def = function(conn, ...) standardGeneric("dbBegin"),
valueClass = "logical"
)

#' @export
#' @rdname transactions
setGeneric("dbCommit",
def = function(conn, ...) standardGeneric("dbCommit"),
valueClass = "logical"
)

#' @export
#' @rdname transactions
setGeneric("dbRollback",
def = function(conn, ...) standardGeneric("dbRollback"),
valueClass = "logical"
)
28 changes: 1 addition & 27 deletions man/transactions.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2f60206

Please sign in to comment.