dbObjectId-class: Class dbObjectId

Description Objects from the Class Slots Methods Note Examples

Description

A helper (mixin) class to provide external references in an R/S-Plus portable way.

Objects from the Class

A virtual Class: No objects may be created from it.

Slots

Id:

Object of class "integer" this is an integer vector holding an opaque reference into a C struct (may or may not be a C pointer, may or may not have length one).

Methods

coerce

signature(from = "dbObjectId", to = "integer"): ...

coerce

signature(from = "dbObjectId", to = "numeric"): ...

coerce

signature(from = "dbObjectId", to = "character"): ...

format

signature(x = "dbObjectId"): ...

print

signature(x = "dbObjectId"): ...

show

signature(object = "dbObjectId"): ...

Note

A cleaner mechanism would use external references, but historically this class has existed mainly for R/S-Plus portability.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
  pg <- dbDriver("PostgreSQL")
  con <- dbConnect(pg, "user", "password")
  is(pg, "dbObjectId")   ## True
  is(con, "dbObjectId")  ## True
  isPostgresqlIdCurrent(con)       ## True
  q("yes")
  \$ R 
  isPostgresqlIdCurrent(con)       ## False

## End(Not run)

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