File: dbiDataType_default.R

package info (click to toggle)
dbi 1.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,740 kB
  • sloc: makefile: 2
file content (11 lines) | stat: -rw-r--r-- 269 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
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)