R/show_SQLiteConnection.R

Defines functions show_SQLiteConnection

Documented in show_SQLiteConnection

# show()
#' @rdname SQLiteConnection-class
#' @usage NULL
show_SQLiteConnection <- function(object) {
  cat("<SQLiteConnection>\n")
  if (dbIsValid(object)) {
    cat("  Path: ", object@dbname, "\n", sep = "")
    cat("  Extensions: ", object@loadable.extensions, "\n", sep = "")
  } else {
    cat("  DISCONNECTED\n")
  }
}
#' @rdname SQLiteConnection-class
#' @export
setMethod("show", "SQLiteConnection", show_SQLiteConnection)

Try the RSQLite package in your browser

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

RSQLite documentation built on Nov. 5, 2023, 1:10 a.m.