README.md

This commit is contained in:
Gwendal Roué committed 2015-12-14 08:09:24 +01:00
1 parent ce3cee68ec
commit 1a45f2cfc1
1 file changed
+3 -1
+3 -1
View File
@@ -1307,7 +1307,7 @@ While your migration code runs with disabled foreign key checks, those are re-en
## RowConvertible Protocol
**The `RowConvertible` protocol grants fetching methods to any type** that can be initialized from a database row:
**The `RowConvertible` protocol grants fetching methods to any type** that can be built from a database row:
```swift
public protocol RowConvertible {
@@ -1341,6 +1341,8 @@ PointOfInterest.fetchAll(db, "SELECT ...") // [PointOfInterest]
PointOfInterest.fetchOne(db, "SELECT ...") // PointOfInterest?
```
See [Column Values](#column-values) for more information about the `value()` method.
Both `fetch` and `fetchAll` let you iterate the full list of fetched objects. The differences are:
- The array returned by `fetchAll` can take a lot of memory. Yet it can be iterated on any thread.