package mongodb
Ordering
- Alphabetic
Visibility
- Public
- All
Type Members
- class DateSerializer extends Serializer[Date]
- class DateTimeSerializer extends Serializer[DateTime]
- sealed abstract class FindOption extends AnyRef
-
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 MongoDocument [BaseDocument] extends JsonObject[BaseDocument]
- trait MongoDocumentMeta [BaseDocument] extends JsonObjectMeta[BaseDocument] with MongoMeta[BaseDocument]
- trait MongoMeta [BaseDocument] extends JsonFormats
- 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]
- sealed abstract class UpdateOption extends AnyRef
Value Members
-
object
AsObjectId
An ObjectId extractor.
- object BsonDSL extends JsonDSL
- object JObjectParser extends SimpleInjector
- object JsonDate
- object JsonDateTime
- object JsonObjectId
- object JsonRegex
- object JsonUUID
-
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.async.client.MongoClients import net.liftweb.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( com.mongodb.MongoClient.getDefaultCodecRegistry(), CodecRegistries.fromCodecs(new LongPrimitiveCodec, new IntegerPrimitiveCodec) ) val admin = client.getDatabase("admin").withCodecRegistry(codecRegistry) MongoAsync.defineDb(AdminIdentifier, admin)
-
object
MongoDB
Main Mongo object
- object MongoRules extends SimpleInjector
- object Multi extends UpdateOption with Product with Serializable
- object Upsert extends UpdateOption with Product with Serializable