R/dbiDataType_ANY.R

Defines functions dbiDataType_ANY

dbiDataType_ANY <- function(x) {
  if (inherits(x, "blob")) {
    return("BLOB")
  }
  stop("Unknown SQL data type for object of class ", paste(class(x), collapse = "/"))
}

setMethod("dbiDataType", signature("ANY"), dbiDataType_ANY)

Try the DBI package in your browser

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

DBI documentation built on June 22, 2024, 9:41 a.m.