BSON.ObjectId (Mongodb v1.0.0) View Source

Represents BSON ObjectId type

Link to this section Summary

Functions

Converts string representation of ObjectId to a BSON.ObjectId struct

Converts BSON.ObjectId struct to a string representation

Creates a new ObjectId from the consisting parts. For generating a new BSON.ObjectId you'd probably want to use Mongo.object_id/0.

Link to this section Types

Specs

t() :: %BSON.ObjectId{value: <<_::96>>}

Link to this section Functions

Converts string representation of ObjectId to a BSON.ObjectId struct

Converts BSON.ObjectId struct to a string representation

Link to this function

new(machine_id, proc_id, secs, counter)

View Source

Creates a new ObjectId from the consisting parts. For generating a new BSON.ObjectId you'd probably want to use Mongo.object_id/0.