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)
rstats-db/RSQLite documentation built on April 20, 2024, 11:56 a.m.