mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-26 04:07:50 +00:00
Documentation
This commit is contained in:
1 parent
ce8673e7e2
commit
f2dd248200
1 file changed
+11
-1
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user