File: dbiDataType_ANY.R

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