Implicit conversion from new BSONDocumentHandler
to the legacy API.
Implicit conversion from new BSONDocumentHandler
to the legacy API.
import reactivemongo.api.bson.HandlerConverters.fromDocumentHandler def bar[T](lh: reactivemongo.api.bson.BSONDocumentHandler[T]) = { val h: reactivemongo.bson.BSONDocumentHandler[T] = lh h }
import reactivemongo.api.bson.HandlerConverters.toDocumentWriter def foo[T](lw: reactivemongo.bson.BSONDocumentWriter[T]) = { val w: reactivemongo.api.bson.BSONDocumentWriter[T] = lw w }
import reactivemongo.api.bson.HandlerConverters.fromDocumentWriter def bar[T](lw: reactivemongo.api.bson.BSONDocumentWriter[T]) = { val w: reactivemongo.bson.BSONDocumentWriter[T] = lw w }
Based on the compatibility conversions,
provides instances of legacy BSONDocumentReader
for the new BSON value API.
Based on the compatibility conversions,
provides instances of legacy BSONDocumentWriter
for the new BSON value API.
Provided there are both a BSONDocumentReader
and a BSONDocumentWriter
for the given type T
,
a BSONDocumentHandler
is materialized.
Provided there are both a BSONDocumentReader
and a BSONDocumentWriter
for the given type T
,
a BSONDocumentHandler
is materialized.
Implicit conversion from legacy BSONDocumentHandler
to the new API.
Implicit conversion from legacy BSONDocumentHandler
to the new API.
import reactivemongo.api.bson.HandlerConverters.toDocumentHandler def foo[T](lh: reactivemongo.bson.BSONDocumentHandler[T]) = { val h: reactivemongo.api.bson.BSONDocumentHandler[T] = lh h }
import reactivemongo.api.bson.HandlerConverters.toDocumentReader def lorem[T](lw: reactivemongo.bson.BSONDocumentReader[T]) = { val w: reactivemongo.api.bson.BSONDocumentReader[T] = lw w }
import reactivemongo.api.bson.HandlerConverters.toDocumentWriter def foo[T](lw: reactivemongo.bson.BSONDocumentWriter[T]) = { val w: reactivemongo.api.bson.BSONDocumentWriter[T] = lw w }
Implicit conversions for handler types between
reactivemongo.bson
andreactivemongo.api.bson
.