For passing in options to the find function
Codec for java.lang.Integer
Codec for java.lang.Long
extend case class with this trait
extend case class companion objects with this trait
This is used by both MongoDocumentMeta and MongoMetaRecord
An ObjectId extractor.
Main Mongo object
(Since version 3.4.3) Please use BsonParser instead.
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)
(Since version 3.4.3) No longer supported. This will be removed in Lift 4.
(Since version 3.4.3) Use com.mongodb.client.model.UpdateOptions instead
(Since version 3.4.3) Use com.mongodb.client.model.UpdateOptions instead
(Since version 3.4.3) Use com.mongodb.client.model.UpdateOptions instead