trait DefaultBsonTransformers extends AnyRef
Default BsonTransformers for native types.
- Alphabetic
- By Inheritance
- DefaultBsonTransformers
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
implicit
def
transformKeyValuePairs[T](implicit transformer: BsonTransformer[T]): BsonTransformer[Seq[(String, T)]]
Transforms
Seq[(String, T)]
toBsonDocument
Transforms
Seq[(String, T)]
toBsonDocument
- T
the type of the values
- transformer
implicit transformer for type
T
- returns
a BsonDocument containing the values
-
implicit
def
transformOption[T](implicit transformer: BsonTransformer[T]): BsonTransformer[Option[T]]
Transforms
Option[T]
toBsonValue
-
implicit
def
transformSeq[T](implicit transformer: BsonTransformer[T]): BsonTransformer[Seq[T]]
Transforms
Seq[T]
toBsonArray
Transforms
Seq[T]
toBsonArray
- T
the type of the values
- transformer
implicit transformer for type
T
- returns
a BsonArray containing all the values
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
implicit
object
TransformBigDecimal
extends BsonTransformer[BigDecimal]
Transforms
BigDecimal
toBsonDecimal128
-
implicit
object
TransformBinary
extends BsonTransformer[Array[Byte]]
Transforms
Array[Byte]
toBsonBinary
-
implicit
object
TransformBoolean
extends BsonTransformer[Boolean]
Transforms
Boolean
toBsonBoolean
-
implicit
object
TransformBsonValue
extends BsonTransformer[BsonValue]
Noop transformer for
BsonValue
s -
implicit
object
TransformDateTime
extends BsonTransformer[Date]
Transforms
Date
toBsonDateTime
-
implicit
object
TransformDecimal128
extends BsonTransformer[Decimal128]
Transforms
Decimal128
toBsonDecimal128
-
implicit
object
TransformDouble
extends BsonTransformer[Double]
Transforms
Double
toBsonDouble
-
implicit
object
TransformImmutableDocument
extends BsonTransformer[collection.immutable.Document]
Transforms
immutable.Document
toBsonDocument
-
implicit
object
TransformInt
extends BsonTransformer[Int]
Transforms
Int
toBsonInt32
-
implicit
object
TransformLong
extends BsonTransformer[Long]
Transforms
Long
toBsonInt64
-
implicit
object
TransformMutableDocument
extends BsonTransformer[collection.mutable.Document]
Transforms
mutable.Document
toBsonDocument
-
implicit
object
TransformNone
extends BsonTransformer[Option[Nothing]]
Transforms
None
toBsonNull
-
implicit
object
TransformObjectId
extends BsonTransformer[ObjectId]
Transforms
ObjectId
toBsonObjectId
-
implicit
object
TransformRegex
extends BsonTransformer[Regex]
Transforms
Regex
toBsonRegex
-
implicit
object
TransformString
extends BsonTransformer[String]
Transforms
String
toBsonString
This is the documentation for the MongoDB Scala driver.
Driver structure
The mongodb scala driver.
To get started you need a MongoClient instance, either from a connection string or via a org.mongodb.scala.MongoClientSettings.
Notable packages include: