| dbDataType,SQLiteConnection-method {RSQLite} | R Documentation |
This method is a straight-forward implementation of the corresponding generic function.
## S4 method for signature 'SQLiteConnection' dbDataType(dbObj, obj, ...) ## S4 method for signature 'SQLiteDriver' dbDataType(dbObj, obj, ...)
dbObj |
a |
obj |
an R object whose SQL type we want to determine. |
... |
Needed for compatibility with generic. Otherwise ignored. |
data(quakes)
drv <- SQLite()
sapply(quakes, function(x) dbDataType(drv, x))
dbDataType(drv, 1)
dbDataType(drv, as.integer(1))
dbDataType(drv, "1")
dbDataType(drv, charToRaw("1"))