mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-28 04:24:20 +00:00
README.md
This commit is contained in:
1 parent
c879ded4b4
commit
1bbf9960da
1 file changed
+2
-1
@@ -1311,7 +1311,8 @@ While your migration code runs with disabled foreign key checks, those are re-en
|
||||
```swift
|
||||
struct Person : RowConvertible { ... }
|
||||
let persons = Person.fetchAll(db, "SELECT * FROM persons")
|
||||
let person = let Person.fetchOne(db, key: 1)
|
||||
let person = let Person.fetchOne(db, key: 1)!
|
||||
print(person.name)
|
||||
```
|
||||
|
||||
- The [DatabasePersistable protocol](#databasepersistable-protocol) grants adopting types with **persistence methods**:
|
||||
|
||||
Reference in new issue
Block a user