setSqlTypeInfo | R Documentation |
Specify or retrieve a mapping of R types to DBMS datatypes.
setSqlTypeInfo(driver, value)
getSqlTypeInfo(driver)
driver |
A character string specifying the |
value |
A named list with character values. This should have
names |
This information is used by sqlSave
if it creates a
table in the DBMS and is not overridden by arguments typeInfo
or varTypes
. Mappings are included for MySQL, PostgreSQL,
SQLite, Oracle, Mimer, DB2 on Windows, and the Microsoft SQL Server,
Access, Excel and Dbase drivers.
The SQL types chosen should be nullable to allow NA
s to be
represented. (Bit and boolean types often are not.)
For setSqlTypeInfo
none.
For getSqlTypeInfo
with an argument, a named list. Without an
argument, a data frame.
Brian Ripley
sqlTypeInfo
, sqlSave
.
## Not run:
getSqlTypeInfo()
getSqlTypeInfo("MySQL")
setSqlTypeInfo("Microsoft SQL Server",
list(double="float", integer="int",
character="varchar(255)", logical="varchar(5)"))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.