| dbSetDataMappings-methods | R Documentation |
Not yet implemented
a PostgreSQLResult object as returned by dbSendQuery.
a data.frame with field descriptions as returned by
dbColumnInfo.
any additional arguments are passed to the implementing method.
See the Database Interface definition document
DBI.pdf in the base directory of this package
or https://cran.r-project.org/package=DBI.
PostgreSQL,
dbSendQuery,
fetch,
dbColumnInfo.
## Not run:
makeImage <- function(x) {
.C("make_Image", as.integer(x), length(x))
}
res <- dbSendQuery(con, statement)
flds <- dbColumnInfo(res)
flds[3, "Sclass"] <- makeImage
dbSetDataMappings(rs, flds)
im <- fetch(rs, n = -1)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.