Learn R Programming

rmongodb (version 1.8.0)

mongo.bson.buffer.append.oid: Append a OID into a mongo.bson.buffer

Description

Append a OID (Object ID) value into a mongo.bson.buffer.

Usage

mongo.bson.buffer.append.oid(buf, name, value)

Arguments

buf
(mongo.bson.buffer) The buffer object to which to append.
name
(string) The name (key) of the field appended to the buffer.
value
(mongo.oid) An OID value.

Value

TRUE if successful; otherwise, FALSE if an error occured appending the data.

See Also

mongo.bson, mongo.bson.buffer, mongo.oid.create, mongo.bson.buffer.append.

Examples

Run this code
buf <- mongo.bson.buffer.create()
mongo.bson.buffer.append.oid(buf, "Now", mongo.oid.create())
b <- mongo.bson.from.buffer(buf)

Run the code above in your browser using DataLab