R/dbiDataType_default.R

Defines functions dbiDataType_default

dbiDataType_default <- function(x) {
  if (inherits(x, c("blob", "arrow_binary"))) {
    return("BLOB")
  }
  stop("SQL type unknown for objects of class ", paste(class(x), collapse = "/"))
}

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

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.