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)
r-dbi/DBI documentation built on April 20, 2024, 5:32 p.m.