All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.avsystem.commons.mongo.DocKey.scala Maven / Gradle / Ivy

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