View Source BSON.ObjectId (mongodb-driver v1.5.0)

Represents BSON ObjectId type

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

Types

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

Functions

Converts string representation of ObjectId to a BSON.ObjectId struct

Examples

{:ok, id} <- BSON.ObjectId.decode(bson_id)

Converts string representation of ObjectId to a BSON.ObjectId struct

Converts BSON.ObjectId struct to a string representation

Examples

{:ok, bson_id} <- BSON.ObjectId.encode(id)

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