package mongodb
Ordering
- Alphabetic
Visibility
- Public
- Protected
Type Members
- class DateSerializer extends Serializer[Date]
- class DateTimeSerializer extends Serializer[DateTime]
- sealed abstract class FindOption extends AnyRef
For passing in options to the find function
- class IntegerPrimitiveCodec extends IntegerCodec
Codec for java.lang.Integer
- trait JsonFormats extends AnyRef
- trait JsonObject[BaseDocument] extends AnyRef
- class JsonObjectMeta[BaseDocument] extends AnyRef
- case class Limit(value: Int) extends FindOption with Product with Serializable
- class LongPrimitiveCodec extends LongCodec
Codec for java.lang.Long
- trait MongoCodecs extends AnyRef
- trait MongoDocument[BaseDocument] extends JsonObject[BaseDocument]
extend case class with this trait
- trait MongoDocumentMeta[BaseDocument] extends JsonObjectMeta[BaseDocument] with MongoMeta[BaseDocument, BsonDocument]
extend case class companion objects with this trait
- trait MongoMeta[BaseDocument, TDocument] extends JsonFormats with MongoCodecs
This is used by both MongoDocumentMeta and MongoMetaRecord
- case class MongoRef(ref: String, id: ObjectId) extends Product with Serializable
- class ObjectIdSerializer extends Serializer[ObjectId]
- class PatternSerializer extends Serializer[Pattern]
- case class Skip(value: Int) extends FindOption with Product with Serializable
- class UUIDSerializer extends Serializer[UUID]
Deprecated Type Members
- sealed abstract class UpdateOption extends AnyRef
- Annotations
- @deprecated
- Deprecated
(Since version 3.4.3) Use com.mongodb.client.model.UpdateOptions instead
Value Members
- object AsObjectId
An ObjectId extractor.
- object BsonDSL extends JsonDSL
- object BsonParser extends SimpleInjector
- object JsonDate
- object JsonDateTime
- object JsonObjectId
- object JsonRegex
- object JsonUUID
- object MongoDB
Main Mongo object
- object MongoRules extends SimpleInjector
- object PatternHelper
Deprecated Value Members
- object JObjectParser extends SimpleInjector
- Annotations
- @deprecated
- Deprecated
(Since version 3.4.3) Please use BsonParser instead.
- object MongoAsync
Async version of MongoDB.
Async version of MongoDB.
You should only have one instance of MongoClient in a JVM.
Example:
import com.mongodb.MongoClientSettings import com.mongodb.async.client.MongoClients import olon.util.{ConnectionIdentifier, DefaultConnectionIdentifier} import org.bson.codecs.configuration.CodecRegistries val client = MongoClients.create("mongodb://127.0.0.1:27017") // main database MongoAsync.defineDb(DefaultConnectionIdentifier, client.getDatabase("mydb")) // admin database case object AdminIdentifier extends ConnectionIdentifier { val jndiName = "admin" } val codecRegistry = CodecRegistries.fromRegistries( MongoClientSettings.getDefaultCodecRegistry(), CodecRegistries.fromCodecs(new LongPrimitiveCodec, new IntegerPrimitiveCodec) ) val admin = client.getDatabase("admin").withCodecRegistry(codecRegistry) MongoAsync.defineDb(AdminIdentifier, admin)
- Annotations
- @deprecated
- Deprecated
(Since version 3.4.3) No longer supported. This will be removed in Lift 4.
- case object Multi extends UpdateOption with Product with Serializable
- Annotations
- @deprecated
- Deprecated
(Since version 3.4.3) Use com.mongodb.client.model.UpdateOptions instead
- case object Upsert extends UpdateOption with Product with Serializable
- Annotations
- @deprecated
- Deprecated
(Since version 3.4.3) Use com.mongodb.client.model.UpdateOptions instead