Collation

expect sealed class Collation(source)

Collation defines how strings are compared and is used when creating a COLLATE expression. The COLLATE expression can be used in the WHERE clause when comparing two strings or in the ORDER BY clause when specifying how the order of the query results. CouchbaseLite provides two types of the Collation, ASCII and Unicode. Without specifying the COLLATE expression Couchbase Lite will use the ASCII with case-sensitive collation by default.

Inheritors

actual sealed class Collation : DelegatedClass<<Error class: unknown class>> (source)

Inheritors

actual sealed class Collation(source)

Inheritors

Types

Link copied to clipboard
expect class ASCII : Collation

ASCII collation compares two strings by using binary comparison.

actual class ASCII : Collation
actual class ASCII : Collation
Link copied to clipboard
expect object Companion
actual object Companion
actual object Companion
Link copied to clipboard
expect class Unicode : Collation

Unicode Collation that will compare two strings by using Unicode collation algorithm. If the locale is not specified, the collation is Unicode-aware but not localized; for example, accented Roman letters sort right after the base letter

actual class Unicode : Collation
actual class Unicode : Collation

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String