R/dbConnect_SQLiteConnection.R

Defines functions dbConnect_SQLiteConnection

Documented in dbConnect_SQLiteConnection

#' @rdname SQLite
#' @usage NULL
dbConnect_SQLiteConnection <- function(drv, ...) {
  if (drv@dbname %in% c("", ":memory:", "file::memory:")) {
    stop("Can't clone a temporary database", call. = FALSE)
  }

  dbConnect(SQLite(), drv@dbname,
    vfs = drv@vfs, flags = drv@flags,
    loadable.extensions = drv@loadable.extensions
  )
}
#' @rdname SQLite
#' @export
setMethod("dbConnect", "SQLiteConnection", dbConnect_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.