mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-29 04:24:21 +00:00
RowAdapter documentation
This commit is contained in:
1 parent
b51b02b1d3
commit
92682cb11f
1 file changed
+1
-1
@@ -1257,7 +1257,7 @@ for row in Row.fetch(db, sql, adapter: adapter) {
|
||||
The last SQL and adapter can be very useful with [RowConvertible](#rowconvertible-protocol) types. For example:
|
||||
|
||||
```swift
|
||||
for book in Book.fetch(sql, adapter: adapter) {
|
||||
for book in Book.fetch(db, sql, adapter: adapter) {
|
||||
book.title // Moby-Dick
|
||||
book.author!.name // Melville
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user