name
The name of the collation.
let name: String
The name of the collation.
let name: String
import GRDB
A toolkit for SQLite databases, with a focus on application development
final class DatabaseCollation
DatabaseCollation
is a custom string comparison function used by SQLite.
@frozen struct String
A Unicode string value that is a collection of characters.
init(_ name: String, function: @escaping (String, String) -> ComparisonResult)
Creates a collation.
static let caseInsensitiveCompare: DatabaseCollation
A collation that compares strings according to the Foundation String.caseInsensitiveCompare(_:)
method.
static let localizedCaseInsensitiveCompare: DatabaseCollation
A collation that compares strings according to the Foundation String.localizedCaseInsensitiveCompare(_:)
method.
static let localizedCompare: DatabaseCollation
A collation that compares strings according to the Foundation String.localizedCompare(_:)
method.
static let localizedStandardCompare: DatabaseCollation
A collation that compares strings according to the Foundation String.localizedStandardCompare(_:)
method.
static let unicodeCompare: DatabaseCollation
A collation that compares strings according to the built-in ==
and <=
operators of the Swift String.
var id: ID { get }
The identifier of the collation.
struct ID
The identifier of an SQLite collation.