object BSON
- Alphabetic
- By Inheritance
- BSON
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- def read[B <: BSONValue, T](bson: B)(implicit reader: BSONReader[B, T]): T
Produces a
T
instance of the given BSON value, if there is an implicitBSONReader[B, T]
in the scope.Produces a
T
instance of the given BSON value, if there is an implicitBSONReader[B, T]
in the scope.Prefer
readDocument
over this one if you want to deserializeBSONDocuments
. - def readDocument[T](doc: BSONDocument)(implicit reader: BSONReader[BSONDocument, T]): T
Produces a
T
instance of the givenBSONDocument
, if there is an implicitBSONReader[BSONDocument, T]
in the scope. - def write[T, B <: BSONValue](t: T)(implicit writer: BSONWriter[T, B]): B
Produces a
BSONValue
instance of the givenT
value, if there is an implicitBSONWriter[T, B]
in the scope.Produces a
BSONValue
instance of the givenT
value, if there is an implicitBSONWriter[T, B]
in the scope.Prefer
writeDocument
over this one if you want to serializeT
instances. - def writeDocument[T](t: T)(implicit writer: BSONWriter[T, BSONDocument]): BSONDocument
Produces a
BSONDocument
of the givenT
instance, if there is an implicitBSONWriter[T, BSONDocument]
in the scope.