Documentation

This commit is contained in:
Gwendal Roué committed 2016-11-18 08:38:42 +01:00
1 parent 4d9db3665f
commit 09dbbc17e4
1 file changed
+2 -2
+2 -2
View File
@@ -4676,10 +4676,10 @@ A collation can be applied to a table column. All comparisons involving this col
```swift
try db.create(table: "persons") { t in
// Guarantees case-insensitive email unicity
t.column("email", .Text).unique().collate(.nocase)
t.column("email", .text).unique().collate(.nocase)
// Sort names in a localized case insensitive way
t.column("name", .Text).collate(.localizedCaseInsensitiveCompare)
t.column("name", .text).collate(.localizedCaseInsensitiveCompare)
}
// Persons are sorted in a localized case insensitive way: