mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-25 04:07:47 +00:00
SQLSpecificExpressible.collating(_:) inline documentation
This commit is contained in:
1 parent
7f64abe820
commit
cbb607b6b0
1 file changed
+8
-6
@@ -35,18 +35,20 @@ extension SQLSpecificExpressible {
|
||||
|
||||
extension SQLSpecificExpressible {
|
||||
|
||||
/// This method is an implementation detail of the query interface.
|
||||
/// Do not use it directly.
|
||||
/// Returns a collated expression.
|
||||
///
|
||||
/// See https://github.com/groue/GRDB.swift/#the-query-interface
|
||||
/// For example:
|
||||
///
|
||||
/// Person.filter(Column("email").collating(.nocase) == "contact@example.com")
|
||||
public func collating(_ collation: Database.CollationName) -> SQLCollatedExpression {
|
||||
return SQLCollatedExpression(sqlExpression, collationName: collation)
|
||||
}
|
||||
|
||||
/// This method is an implementation detail of the query interface.
|
||||
/// Do not use it directly.
|
||||
/// Returns a collated expression.
|
||||
///
|
||||
/// See https://github.com/groue/GRDB.swift/#the-query-interface
|
||||
/// For example:
|
||||
///
|
||||
/// Person.filter(Column("name").collating(.localizedStandardCompare) == "Hervé")
|
||||
public func collating(_ collation: DatabaseCollation) -> SQLCollatedExpression {
|
||||
return SQLCollatedExpression(sqlExpression, collationName: Database.CollationName(collation.name))
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user