File: dbiDataType_ANY.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-- 246 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
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)