Packages

  • package root
    Definition Classes
    root
  • package reactivemongo
    Definition Classes
    root
  • package bson
    Definition Classes
    reactivemongo
  • object Macros

    Macros for generating BSONReader and BSONWriter implementations for case at compile time.

    Macros for generating BSONReader and BSONWriter implementations for case at compile time. Invoking these macros is equivalent to writing anonymous class implementations by hand.

    import reactivemongo.bson.Macros
    
    case class Person(name: String, surname: String)
    implicit val personHandler = Macros.handler[Person]
    Definition Classes
    bson
    See also

    Macros.Options for specific options

  • object Options

    Methods with 'Opts' postfix will take additional options in the form of type parameters that will customize behaviour of the macros during compilation.

    Methods with 'Opts' postfix will take additional options in the form of type parameters that will customize behaviour of the macros during compilation.

    Definition Classes
    Macros
  • AutomaticMaterialization
  • Default
  • SaveSimpleName
  • SimpleUnionType
  • UnionType
  • Verbose
  • \/
t

reactivemongo.bson.Macros.Options

AutomaticMaterialization

trait AutomaticMaterialization extends Default

For a sealed family (all implementations of a sealed trait or defined explicit union types), this option enables the automatic materialization of handlers for the member types.

If used, make sure it cannot lead to type recursion issue (disabled by default).

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AutomaticMaterialization
  2. Default
  3. AnyRef
  4. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected