package bson
The bson package, contains mirrors and companion objects for Bson
values.
- Alphabetic
- By Inheritance
- bson
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Package Members
- î package annotations
- î package codecs
- î
package collection
The collection package.
Type Members
- î
type BsonArray = bson.BsonArray
Alias to
org.bson.BsonArray
- î
type BsonBinary = bson.BsonBinary
Alias to
org.bson.BsonBinary
- î
type BsonBoolean = bson.BsonBoolean
Alias to
org.bson.BsonBoolean
- î
type BsonDateTime = bson.BsonDateTime
Alias to
org.bson.BsonDateTime
- î
type BsonDecimal128 = bson.BsonDecimal128
Alias to
org.bson.BsonDecimal128
Alias to
org.bson.BsonDecimal128
- Since
1.2
- î
type BsonDocument = bson.BsonDocument
Alias to
org.bson.BsonDocument
- î
type BsonDouble = bson.BsonDouble
Alias to
org.bson.BsonDouble
- î
type BsonElement = bson.BsonElement
Alias to
org.bson.BsonElement
- î
type BsonInt32 = bson.BsonInt32
Alias to
org.bson.BsonInt32
- î
type BsonInt64 = bson.BsonInt64
Alias to
org.bson.BsonInt64
- î
type BsonJavaScript = bson.BsonJavaScript
Alias to
org.bson.BsonJavaScript
- î
type BsonJavaScriptWithScope = bson.BsonJavaScriptWithScope
Alias to
org.bson.BsonJavaScriptWithScope
- î
type BsonMaxKey = bson.BsonMaxKey
Alias to
org.bson.BsonMaxKey
- î
type BsonMinKey = bson.BsonMinKey
Alias to
org.bson.BsonMinKey
- î
type BsonNull = bson.BsonNull
Alias to
org.bson.BsonNull
- î
type BsonNumber = bson.BsonNumber
Alias to
org.bson.BsonNumber
- î
type BsonObjectId = bson.BsonObjectId
Alias to
org.bson.BsonObjectId
- î
type BsonRegularExpression = bson.BsonRegularExpression
Alias to
org.bson.BsonRegularExpression
- î
type BsonString = bson.BsonString
Alias to
org.bson.BsonString
- î
type BsonSymbol = bson.BsonSymbol
Alias to
org.bson.BsonSymbol
- î
type BsonTimestamp = bson.BsonTimestamp
Alias to
org.bson.BsonTimestamp
- î
trait BsonTransformer[-T] extends AnyRef
BsonTransformers allow the transformation of type
T
to their corresponding BsonValue. - î
type BsonUndefined = bson.BsonUndefined
Alias to
org.bson.BsonUndefined
- î
type BsonValue = bson.BsonValue
Alias to
org.bson.BsonValue
- î
type Decimal128 = bson.types.Decimal128
Alias to
org.bson.Decimal128
Alias to
org.bson.Decimal128
- Since
1.2
- î
trait DefaultBsonTransformers extends LowPrio
Default BsonTransformers for native types.
- î
type Document = bson.collection.immutable.Document
An immutable Document implementation.
An immutable Document implementation.
A strictly typed
Map[String, BsonValue]
like structure that traverses the elements in insertion order. Unlike native scala maps there is no variance in the value type and it always has to be aBsonValue
. - î trait LowPrio extends AnyRef
- î
type ObjectId = bson.types.ObjectId
Alias to
org.bson.ObjectId
Alias to
org.bson.ObjectId
- Since
1.2
- î
implicit final class RichBsonElement extends AnyVal
Implicit value class for a BsonElement allowing easy access to the key/value pair
Value Members
- î
val Document: bson.collection.immutable.Document.type
An immutable Document implementation.
An immutable Document implementation.
A strictly typed
Map[String, BsonValue]
like structure that traverses the elements in insertion order. Unlike native scala maps there is no variance in the value type and it always has to be aBsonValue
. - î
object BsonArray
Companion helper for a BsonArray
Companion helper for a BsonArray
- Since
1.0
- î
object BsonBinary
Companion helper for a BsonBinary
Companion helper for a BsonBinary
- Since
1.0
- î
object BsonBoolean
Companion helper for a BsonBoolean
Companion helper for a BsonBoolean
- Since
1.0
- î
object BsonDateTime
Companion helper for a BsonDateTime
Companion helper for a BsonDateTime
- Since
1.0
- î
object BsonDecimal128
Companion helper for a BsonDecimal128
Companion helper for a BsonDecimal128
- Since
1.2
- î
object BsonDocument
Companion helper for a BsonDocument
Companion helper for a BsonDocument
- Since
1.0
- î
object BsonDouble
Companion helper for a BsonDouble
Companion helper for a BsonDouble
- Since
1.0
- î
object BsonElement
A companion helper for a
BsonElement
- the mapping from a name to a BsonValue.A companion helper for a
BsonElement
- the mapping from a name to a BsonValue.Used by the BsonMagnets and polices valid key/value pairs types for Document.
- Since
1.0
- î
object BsonInt32
Companion helper for a BsonInt32
Companion helper for a BsonInt32
- Since
1.0
- î
object BsonInt64
Companion helper for a BsonInt64
Companion helper for a BsonInt64
- Since
1.0
- î
object BsonJavaScript
Companion helper for a BsonJavaScript
Companion helper for a BsonJavaScript
- Since
1.0
- î
object BsonJavaScriptWithScope
Companion helper for a BsonJavaScriptWithScope
Companion helper for a BsonJavaScriptWithScope
- Since
1.0
- î
object BsonMagnets
A magnet pattern implementation enforcing the validity of user provided native values being able to be converted into BsonValues.
A magnet pattern implementation enforcing the validity of user provided native values being able to be converted into BsonValues.
- Attributes
- protected
- Since
1.0
- î
object BsonMaxKey
Companion helper for a BsonMaxKey
Companion helper for a BsonMaxKey
- Since
1.0
- î
object BsonMinKey
Companion helper for a BsonMinKey
Companion helper for a BsonMinKey
- Since
1.0
- î
object BsonNull
Companion helper for a BsonNull
Companion helper for a BsonNull
- Since
1.0
- î
object BsonNumber
Companion helper for a BsonNumber
Companion helper for a BsonNumber
- Since
1.0
- î
object BsonObjectId
Companion helper for a BsonObjectId
Companion helper for a BsonObjectId
- Since
1.0
- î
object BsonRegularExpression
Companion helper for a BsonRegularExpression
Companion helper for a BsonRegularExpression
- Since
1.0
- î
object BsonString
Companion helper for a BsonString
Companion helper for a BsonString
- Since
1.0
- î
object BsonSymbol
Companion helper for a BsonSymbol
Companion helper for a BsonSymbol
- Since
1.0
- î
object BsonTimestamp
Companion helper for a BsonTimestamp
Companion helper for a BsonTimestamp
- Since
1.0
- î
object BsonTransformer extends DefaultBsonTransformers
Maps the following native scala types to BsonValues:
Maps the following native scala types to BsonValues:
BsonValue => BsonValue
BigDecimal
=> BsonDecimal128Boolean => BsonBoolean
String => BsonString
Array[Byte] => BsonBinary
Regex => BsonRegex
Date => BsonDateTime
Decimal128
=> BsonDecimal128ObjectId => BsonObjectId
Int => BsonInt32
Long => BsonInt64
Double => BsonDouble
None => BsonNull
immutable.Document => BsonDocument
mutable.Document => BsonDocument
Option[T] => BsonValue
whereT
is one of the above typesSeq[(String, T)] => BsonDocument
whereT
is one of the above typesSeq[T] => BsonArray
whereT
is one of the above types
- î
object BsonUndefined
Companion helper for a BsonUndefined
Companion helper for a BsonUndefined
- Since
1.0
- î
object DefaultHelper
A helper containing the sealed
DefaultsTo
trait which is used to determine the default type for a given method.A helper containing the sealed
DefaultsTo
trait which is used to determine the default type for a given method.- Attributes
- protected[scala]
- Since
1.0
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: