
com.avsystem.commons.mongo.DocKey.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of commons-mongo_2.11 Show documentation
Show all versions of commons-mongo_2.11 Show documentation
AVSystem commons library for Scala
The newest version!
package com.avsystem.commons
package mongo
import org.bson.{BsonDocument, BsonValue}
/**
* @author MKej
*/
case class DocKey[A, BSON <: BsonValue](key: String, codec: BsonCodec[A, BSON]) {
def ++[B, BBSON <: BsonValue](other: DocKey[B, BBSON])(implicit ev: BSON <:< BsonDocument): DocKey[B, BBSON] = new DocKey(key + "." + other.key, other.codec)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy