R/dbAppendTable_SQLiteConnection.R

Defines functions dbAppendTable_SQLiteConnection

Documented in dbAppendTable_SQLiteConnection

#' @rdname SQLiteConnection-class
#' @usage NULL
dbAppendTable_SQLiteConnection <- function(conn, name, value, ...,
                                           row.names = NULL) {
  savepoint_id <- get_savepoint_id("dbAppendTable")
  dbBegin(conn, name = savepoint_id)
  on.exit(dbRollback(conn, name = savepoint_id))

  out <- callNextMethod()

  on.exit(NULL)
  dbCommit(conn, name = savepoint_id)

  out
}
#' @rdname SQLiteConnection-class
#' @export
setMethod("dbAppendTable", "SQLiteConnection", dbAppendTable_SQLiteConnection)

Try the RSQLite package in your browser

Any scripts or data that you put into this service are public.

RSQLite documentation built on May 29, 2024, 3:30 a.m.