From f2dd248200738b5667d89ad1729aed32a79ba382 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Sat, 17 Sep 2016 11:02:02 +0200 Subject: [PATCH] Documentation --- README.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index cadecc28a..7579b4723 100644 --- a/README.md +++ b/README.md @@ -2695,7 +2695,17 @@ Feed [requests](#requests) with SQL expressions built from your Swift code: Person.select(nameColumn.uppercased()) ``` - > :point_up: **Note**: When *comparing* strings, you'd rather use a [custom comparison function](#string-comparison). + > :point_up: **Note**: When *comparing* strings, you'd rather use a [custom comparison function](#string-comparison): + > + > ```swift + > let name: String = ... + > + > // Not recommended + > nameColumn.uppercased() == name.uppercased() + > + > // Better + > nameColumn.collating(.caseInsensitiveCompare) == name + > ``` - Custom SQL functions