mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-24 04:07:47 +00:00
Query Interface Request documentation
This commit is contained in:
1 parent
d78784e45e
commit
4745eb190a
1 file changed
+6
@@ -2645,6 +2645,12 @@ For multiple-column primary keys, provide a dictionary:
|
||||
Citizenship.fetchOne(db, key: ["personID": 1, "countryISOCode": "FR"]) // Citizenship?
|
||||
```
|
||||
|
||||
You can use generally use a dictionary for any **unique key** (primary key and columns involved in a unique index):
|
||||
|
||||
```swift
|
||||
Person.fetchOne(db, key: ["email": "arthur@example.com"]) // Person?
|
||||
```
|
||||
|
||||
|
||||
### Fetching Aggregated Values
|
||||
|
||||
|
||||
Reference in new issue
Block a user