mongodb-driver v0.6.5 BSON.ObjectId View Source
Represents BSON ObjectId type
Link to this section Summary
Functions
Converts string representation of ObjectId to a BSON.ObjectId struct
Converts string representation of ObjectId to a BSON.ObjectId struct
Converts BSON.ObjectId struct to a string representation
Converts BSON.ObjectId struct to a string representation
Creates a new ObjectId from the consisting parts
Link to this section Types
Link to this type
t()
View Source
t()
View Source
t() :: %BSON.ObjectId{value: <<_::96>>}
t() :: %BSON.ObjectId{value: <<_::96>>}
Link to this section Functions
Link to this function
decode(id) View Source
Converts string representation of ObjectId to a BSON.ObjectId struct
Example
{:ok, id} <- BSON.ObjectId.decode(bson_id)
Link to this function
decode!(arg) View Source
Converts string representation of ObjectId to a BSON.ObjectId struct
Link to this function
encode(object_id) View Source
Converts BSON.ObjectId struct to a string representation
Example
{:ok, bson_id} <- BSON.ObjectId.encode(id)
Link to this function
encode!(object_id) View Source
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