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
d26fed9bbd
commit
8da196b614
1 file changed
+2
-3
@@ -1014,11 +1014,10 @@ class Person : Record {
|
||||
|
||||
try dbQueue.inDatabase { db in
|
||||
// Person?
|
||||
let person = Person.fetchOne(db,
|
||||
primaryKey: 123)
|
||||
let person = Person.fetchOne(db, primaryKey: 123)
|
||||
|
||||
// Citizenship?
|
||||
Citizenship.fetchOne(db,
|
||||
let citizenship = Citizenship.fetchOne(db,
|
||||
key: ["personId": 123, "countryIsoCode": "FR"])
|
||||
}
|
||||
```
|
||||
|
||||
Reference in new issue
Block a user