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

io.github.zeal18.zio.mongodb.driver.indexes.Index.scala Maven / Gradle / Ivy

package io.github.zeal18.zio.mongodb.driver.indexes

import com.mongodb.client.model.IndexModel

final case class Index(key: IndexKey, options: IndexOptions) {
  private[driver] def toJava: IndexModel = new IndexModel(key, options.toJava)
}

object Index {
  def apply(key: IndexKey): Index = Index(key, IndexOptions())
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy