SQLSpecificExpressible.collating(_:) inline documentation

This commit is contained in:
Gwendal Roué authored and Gwendal Roué committed 2017-06-20 07:54:19 +02:00
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))
}