Only for internal purposes
Macros with 'Opts' suffix will take additional options in the form of type parameters that will customize behaviour of the macros during compilation.
Only for internal purposes
Macros for generating BSONReader
and BSONWriter
at compile time,
with given options.
Annotations to use on case classes that are being processed by macros.
Only for internal purposes
Returns macros using the current BSON configuration.
Returns macros using the current BSON configuration.
the compile-time options
import reactivemongo.api.bson.{ BSONDocumentReader, MacroConfiguration, Macros } // Materializes a `BSONDocumentReader[Foo]`, // with the configuration resolved at compile time val r1: BSONDocumentReader[Foo] = Macros.configured.reader[Foo] val r2: BSONDocumentReader[Foo] = Macros.configured( MacroConfiguration.simpleTypeName).reader[Foo]
Creates a BSONDocumentHandler for type A
.
Creates a BSONDocumentHandler for type A
.
the type of the value represented as BSON
Creates a BSONDocumentHandler for type A
and takes additional options.
Creates a BSONDocumentHandler for type A
and takes additional options.
the type of the value represented as BSON
the compile-time options
Creates a BSONDocumentReader for type A
.
Creates a BSONDocumentReader for type A
.
the type of the value represented as BSON
Creates a BSONDocumentReader for type A
and takes additional options.
Creates a BSONDocumentReader for type A
and takes additional options.
the type of the value represented as BSON
the compile-time options
Returns an inference context to call the BSON macros, using explicit compile-time options.
Returns an inference context to call the BSON macros, using explicit compile-time options.
the compile-time options
import reactivemongo.api.bson.{ BSONDocumentReader, MacroConfiguration, Macros } val w: BSONDocumentWriter[Bar] = Macros.using[Options.Default].writer[Bar]
Creates a BSONDocumentWriter for type A
.
Creates a BSONDocumentWriter for type A
.
the type of the value represented as BSON
Creates a BSONDocumentWriter for type A
and takes additional options.
Creates a BSONDocumentWriter for type A
and takes additional options.
the type of the value represented as BSON
the compile-time options
Macros for generating
BSONReader
andBSONWriter
at compile time.MacroConfiguration for extended configuration
Macros.Options for specific options