A BSONArray
structure (BSON type 0x04
).
A BSONArray
structure (BSON type 0x04
).
A BSONArray
is a straightforward BSONDocument
where keys are a sequence of positive integers.
A BSONArray
is basically a stream of tuples (String, BSONValue)
where the first member is a string representation of an index.
It is completely lazy. The stream it wraps is a Stream[Try[(String, BSONValue)]]
since
we cannot be sure that a not yet deserialized value will be processed without error.
A BSON binary value.
A BSON binary value.
The binary content.
The type of the binary content.
BSON boolean value
A BSON value that can be seen as a boolean.
A BSON value that can be seen as a boolean.
Conversions:
number = 0 ~> false
number != 0 ~> true
boolean
undefined ~> false
null ~> false
BSON DBPointer value.
BSON date time value
A BSONDocument
structure (BSON type 0x03
).
A BSONDocument
structure (BSON type 0x03
).
A BSONDocument
is basically a stream of tuples (String, BSONValue)
.
It is completely lazy. The stream it wraps is a Stream[Try[(String, BSONValue)]]
since
we cannot be sure that a not yet deserialized value will be processed without error.
Convenient type alias for document handlers
A BSON Double.
Operations for a BSONElement that can contain multiple nested elements.
BSON Integer value
BSON JavaScript value.
BSON JavaScript value.
The JavaScript source code.
BSON scoped JavaScript value.
BSON scoped JavaScript value.
The JavaScript source code. TODO
BSON Long value
A BSON value that can be seen as a number.
BSON ObjectId value.
BSON ObjectId value.
+------------------------+------------------------+------------------------+------------------------+ + timestamp (in seconds) + machine identifier + thread identifier + increment + + (4 bytes) + (3 bytes) + (2 bytes) + (3 bytes) + +------------------------+------------------------+------------------------+------------------------+
A reader that produces an instance of T
from a subtype of BSONValue.
BSON Regex value.
BSON Regex value.
Regex flags.
BSON Symbol value.
BSON Timestamp value
A writer that produces a subtype of BSONValue fron an instance of T
.
Binary Subtype
A reader that produces an instance of T
from a subtype of BSONValue.
A writer that produces a subtype of BSONValue fron an instance of T
.
Handler factory
BSON Max key value
BSON Min key value
BSON null value
Timestamp companion
BSON Undefined value
Macros for generating BSONReader
and BSONWriter
implementations for case
at compile time.
Macros for generating BSONReader
and BSONWriter
implementations for case
at compile time. Invoking these macros is equivalent to writing anonymous
class implementations by hand.
case class Person(name: String, surname: String) implicit val personHandler = Macros.handler[Person]
Macros.Options for specific options
Returns an array with given values.
Returns an empty array.
Returns a document with given elements.
Returns an empty document.
Returns a newly generated object ID.