Package

net.liftweb

mongodb

Permalink

package mongodb

Visibility
  1. Public
  2. All

Type Members

  1. class DateSerializer extends Serializer[Date]

    Permalink
  2. class DateTimeSerializer extends Serializer[DateTime]

    Permalink
  3. sealed abstract class FindOption extends AnyRef

    Permalink

    For passing in options to the find function

  4. class IntegerPrimitiveCodec extends IntegerCodec

    Permalink

    Codec for java.lang.Integer

  5. trait JsonFormats extends AnyRef

    Permalink
  6. trait JsonObject[BaseDocument] extends AnyRef

    Permalink
  7. class JsonObjectMeta[BaseDocument] extends AnyRef

    Permalink
  8. case class Limit(value: Int) extends FindOption with Product with Serializable

    Permalink
  9. class LongPrimitiveCodec extends LongCodec

    Permalink

    Codec for java.lang.Long

  10. trait MongoCodecs extends AnyRef

    Permalink
  11. trait MongoDocument[BaseDocument] extends JsonObject[BaseDocument]

    Permalink

    extend case class with this trait

  12. trait MongoDocumentMeta[BaseDocument] extends JsonObjectMeta[BaseDocument] with MongoMeta[BaseDocument, BsonDocument]

    Permalink

    extend case class companion objects with this trait

  13. trait MongoMeta[BaseDocument, TDocument] extends JsonFormats with MongoCodecs

    Permalink

    This is used by both MongoDocumentMeta and MongoMetaRecord

  14. case class MongoRef(ref: String, id: ObjectId) extends Product with Serializable

    Permalink
  15. class ObjectIdSerializer extends Serializer[ObjectId]

    Permalink
  16. class PatternSerializer extends Serializer[Pattern]

    Permalink
  17. case class Skip(value: Int) extends FindOption with Product with Serializable

    Permalink
  18. class UUIDSerializer extends Serializer[UUID]

    Permalink
  19. sealed abstract class UpdateOption extends AnyRef

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 3.4.3) Use com.mongodb.client.model.UpdateOptions instead

Value Members

  1. object AsObjectId

    Permalink

    An ObjectId extractor.

  2. object BsonDSL extends JsonDSL

    Permalink
  3. object BsonParser extends SimpleInjector

    Permalink
  4. object JsonDate

    Permalink
  5. object JsonDateTime

    Permalink
  6. object JsonObjectId

    Permalink
  7. object JsonRegex

    Permalink
  8. object JsonUUID

    Permalink
  9. object MongoDB

    Permalink

    Main Mongo object

  10. object MongoRules extends SimpleInjector

    Permalink
  11. object PatternHelper

    Permalink
  12. package codecs

    Permalink

Deprecated Value Members

  1. object JObjectParser extends SimpleInjector

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 3.4.3) Please use BsonParser instead.

  2. object MongoAsync

    Permalink

    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 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(
      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.

  3. object Multi extends UpdateOption with Product with Serializable

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 3.4.3) Use com.mongodb.client.model.UpdateOptions instead

  4. object Upsert extends UpdateOption with Product with Serializable

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 3.4.3) Use com.mongodb.client.model.UpdateOptions instead

Ungrouped