dbSetDataMappings-methods: Set data mappings between PostgreSQL and R/S-Plus

Description Methods References See Also Examples

Description

Not yet implemented

Methods

res

a PostgreSQLResult object as returned by dbSendQuery.

flds

a data.frame with field descriptions as returned by dbColumnInfo.

...

any additional arguments are passed to the implementing method.

References

See the Database Interface definition document DBI.pdf in the base directory of this package or https://cran.r-project.org/package=DBI.

See Also

PostgreSQL, dbSendQuery, fetch, dbColumnInfo.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## 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)

RPostgreSQL documentation built on May 2, 2019, 8:49 a.m.