From cbb607b6b07a0fe7a4e1c63148ff5ad1a6d831fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Sun, 18 Jun 2017 18:02:10 +0200 Subject: [PATCH] SQLSpecificExpressible.collating(_:) inline documentation --- .../SQLSpecificExpressible+QueryInterface.swift | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/GRDB/QueryInterface/SQLSpecificExpressible+QueryInterface.swift b/GRDB/QueryInterface/SQLSpecificExpressible+QueryInterface.swift index 809d304b9..c43d65506 100644 --- a/GRDB/QueryInterface/SQLSpecificExpressible+QueryInterface.swift +++ b/GRDB/QueryInterface/SQLSpecificExpressible+QueryInterface.swift @@ -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)) }