mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-24 04:07:47 +00:00
README.md
This commit is contained in:
1 parent
ce3cee68ec
commit
1a45f2cfc1
1 file changed
+3
-1
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user