dbDataType,SQLiteDriver-method {RSQLite} | R Documentation |
Given an object, return its SQL data type as a SQL database identifier.
## S4 method for signature 'SQLiteDriver' dbDataType(dbObj, obj, ...) ## S4 method for signature 'SQLiteConnection' dbDataType(dbObj, obj, ...)
dbObj |
a |
obj |
an R object whose SQL type we want to determine. |
... |
Needed for compatibility with generic. Otherwise ignored. |
The corresponding generic function DBI::dbDataType()
.
library(DBI) dbDataType(RSQLite::SQLite(), 1) dbDataType(RSQLite::SQLite(), 1L) dbDataType(RSQLite::SQLite(), "1") dbDataType(RSQLite::SQLite(), TRUE) dbDataType(RSQLite::SQLite(), list(raw(1))) sapply(datasets::quakes, dbDataType, dbObj = RSQLite::SQLite())