mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-27 04:14:21 +00:00
README.md
This commit is contained in:
1 parent
08c75a2d06
commit
541316cd89
1 file changed
+2
-2
@@ -2038,7 +2038,7 @@ Feed [requests](#requests) with SQL expressions built from your Swift code:
|
||||
Instead, GRDB extends SQLite with SQL functions that call the Swift built-in string functions `capitalizedString`, `lowercaseString`, `uppercaseString`, `localizedCapitalizedString`, `localizedLowercaseString` and `localizedUppercaseString`:
|
||||
|
||||
```swift
|
||||
Person.select(nameColumn.capitalizedString)
|
||||
Person.select(nameColumn.uppercaseString)
|
||||
```
|
||||
|
||||
> :point_up: **Note**: When *comparing* strings, you'd rather use a [custom comparison function](#string-comparison).
|
||||
@@ -2640,7 +2640,7 @@ String.fetchOne(db, "SELECT \(uppercaseString.name)('Jérôme')")
|
||||
Those unicode-aware string functions are also readily available in the [query interface](#sql-functions):
|
||||
|
||||
```
|
||||
Person.select(nameColumn.capitalizedString)
|
||||
Person.select(nameColumn.uppercaseString)
|
||||
```
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user