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

io.github.zeal18.zio.mongodb.driver.model.CollationAlternate.scala Maven / Gradle / Ivy

There is a newer version: 0.11.1
Show newest version
package io.github.zeal18.zio.mongodb.driver.model

import com.mongodb.client.model.CollationAlternate as JCollactionAlternate

/** Collation support allows the specific configuration of whether or not spaces and punctuation are considered base characters.
  *
  * @mongodb.server.release 3.4
  */
sealed trait CollationAlternate {
  private[driver] def toJava: JCollactionAlternate =
    this match {
      case CollationAlternate.Shifted      => JCollactionAlternate.SHIFTED
      case CollationAlternate.NonIgnorable => JCollactionAlternate.NON_IGNORABLE
    }
}

object CollationAlternate {

  /** Shifted
    *
    * 

Spaces and punctuation are not considered base characters, and are only distinguished when the collation strength is > 3

* @see CollationMaxVariable */ case object Shifted extends CollationAlternate /** Non-ignorable * *

Spaces and punctuation are considered base characters

*/ case object NonIgnorable extends CollationAlternate }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy