README.md

This commit is contained in:
Gwendal Roué committed 2016-01-16 10:27:05 +01:00
1 parent c879ded4b4
commit 1bbf9960da
1 file changed
+2 -1
+2 -1
View File
@@ -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**: