A BSONArray
structure (BSON type 0x04
).
A BSONArray
structure (BSON type 0x04
).
A BSONArray
is a indexed sequence of BSONValue.
A BSON binary value.
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 date time value
Value wrapper for a BSON 128-bit decimal.
A BSONDocument
structure (BSON type 0x03
).
A BSONDocument
structure (BSON type 0x03
).
A BSONDocument
is basically a set of fields (String, BSONValue)
.
Note: The insertion/initial order of the fields may not be maintained through the operations.
Convenient type alias for document handlers
A BSON Double.
BSON Integer value
BSON JavaScript value.
BSON JavaScript value with scope (WS).
BSON Long value
BSON Max key value
BSON Min key value
BSON null value
A BSON value that can be seen as a number.
A BSON value that can be seen as a number.
Conversions:
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 Symbol value.
BSON Timestamp value
BSON Undefined value
A writer that produces a subtype of BSONValue from an instance of T
.
Naming strategy, to map each class property to the corresponding field.
Macro configuration
Binary Subtype
Naming strategy, to map each class to a discriminator value.
Type level evidence that type A
is not type B
.
Type level evidence that type A
is not type B
.
Utility functions
Handler factory
Timestamp companion
Naming companion
Macros for generating BSONReader
and BSONWriter
at compile time.
Macros for generating BSONReader
and BSONWriter
at compile time.
case class Person(name: String, surname: String) implicit val personHandler = Macros.handler[Person]
MacroConfiguration for extended configuration
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.