MongoDB-class {Proc4} | R Documentation |
"MongoDB"
An S4-style class for the mongo
class. Note
that this is actually a class union, allowing for NULL
if the
database is not yet initialized.
NULL
is an object of this class.
Objects of this class can be created with calls to
mongo
.
No methods defined with class "MongoDB" in the signature.
The original mongo
class is an S3 class.
Rather than just call setOldClass
and exposing
that, I've explosed a class union
(setClassUnion
) with the mongo
class and
NULL
.
A typical usage would have this type used in the slot of an object,
which would initialize the value to NULL
, and then set it to a
mongo
object when the database connection is openned.
Russell Almond
showClass("MongoDB") showClass("ListenerSet") lset <- ListenerSet$new() lset$messdb