R/utils.R

check_pointer <- function(dbh) {
  .Call("rberkeley_check_pointer", dbh)
}

as.DB <- function(x) {
  if(is.DB(x)) {
    return(attr(x, "conn_id"))
  } else stop("not a DB connection")
}

is.DB <- function(x) {
  inherits(x, "DB") 
}

print.DB <- function(x, ...) {
  cat("<DB Handle>\n")
}

Try the RBerkeley package in your browser

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

RBerkeley documentation built on Jan. 15, 2017, 3:44 p.m.