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.
BSON ObjectId value.
BSON ObjectId value.
| Timestamp (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.
Mapping from a BSON string to T
Mapping from a BSON string to T
Macro configuration
Macros with 'Opts' suffix will take additional options in the form of type parameters that will customize behaviour of the macros during compilation.
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
See BSONArray
BSONDocument factories & utilities
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
MacroOptions for specific options
Returns an array with given values.
Returns an empty array.
Returns a BSON handler for java.time.LocalDate
,
considering the specified time zone
.
Returns a BSON handler for java.time.LocalDate
,
considering the specified time zone
.
Returns a BSON handler for java.time.LocalDateTime
,
considering the specified time zone
.
Returns a BSON handler for java.time.LocalDateTime
,
considering the specified time zone
.
Returns a BSON handler for java.time.OffsetDateTime
,
considering the specified time zone
.
Returns a BSON handler for java.time.OffsetDateTime
,
considering the specified time zone
.
Returns a BSON handler for java.time.ZonedDateTime
,
considering the specified time zone
.
Returns a BSON handler for java.time.ZonedDateTime
,
considering the specified time zone
.
Returns a document with given elements.
Returns an empty document.
Returns a newly generated object ID.