Packages

p

net.liftweb

mongodb

package mongodb

Ordering
  1. Alphabetic
Visibility
  1. Public
  2. All

Type Members

  1. class DateSerializer extends Serializer[Date]
  2. class DateTimeSerializer extends Serializer[DateTime]
  3. sealed abstract class FindOption extends AnyRef
  4. class IntegerPrimitiveCodec extends IntegerCodec

    Codec for java.lang.Integer

  5. trait JsonFormats extends AnyRef
  6. trait JsonObject [BaseDocument] extends AnyRef
  7. class JsonObjectMeta [BaseDocument] extends AnyRef
  8. case class Limit (value: Int) extends FindOption with Product with Serializable
  9. class LongPrimitiveCodec extends LongCodec

    Codec for java.lang.Long

  10. trait MongoDocument [BaseDocument] extends JsonObject[BaseDocument]
  11. trait MongoDocumentMeta [BaseDocument] extends JsonObjectMeta[BaseDocument] with MongoMeta[BaseDocument]
  12. trait MongoMeta [BaseDocument] extends JsonFormats
  13. case class MongoRef (ref: String, id: ObjectId) extends Product with Serializable
  14. class ObjectIdSerializer extends Serializer[ObjectId]
  15. class PatternSerializer extends Serializer[Pattern]
  16. case class Skip (value: Int) extends FindOption with Product with Serializable
  17. class UUIDSerializer extends Serializer[UUID]
  18. sealed abstract class UpdateOption extends AnyRef

Value Members

  1. object AsObjectId

    An ObjectId extractor.

  2. object BsonDSL extends JsonDSL
  3. object JObjectParser extends SimpleInjector
  4. object JsonDate
  5. object JsonDateTime
  6. object JsonObjectId
  7. object JsonRegex
  8. object JsonUUID
  9. 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)
  10. object MongoDB

    Main Mongo object

  11. object MongoRules extends SimpleInjector
  12. object Multi extends UpdateOption with Product with Serializable
  13. object Upsert extends UpdateOption with Product with Serializable

Ungrouped