RSQLite (version 0.5-6)

dbDataType-methods: Determine the SQL Data Type of an S object

Description

This method is a straight-forward implementation of the corresponding generic function.

Arguments

References

See the Database Interface definition document DBI.pdf in the base directory of this package or http://stat.bell-labs.com/RS-DBI.

See Also

isSQLKeyword make.db.names

Examples

Run this code
data(quakes)
drv <- dbDriver("SQLite")
sapply(quakes, function(x) dbDataType(drv, x))

dbDataType(drv, 1)
dbDataType(drv, as.integer(1))
dbDataType(drv, "1")
dbDataType(drv, charToRaw("1"))

Run the code above in your browser using DataCamp Workspace