mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-30 04:28:44 +00:00
README.md
This commit is contained in:
1 parent
3f4a13814b
commit
10a6f833f9
1 file changed
+7
-1
@@ -237,6 +237,12 @@ The last two methods are the only ones that don't take a custom SQL query as an
|
||||
|
||||
### Row Queries
|
||||
|
||||
- [Fetching Rows](#fetching-rows)
|
||||
- [Column Values](#column-values)
|
||||
- [Rows as Dictionaries](#rows-as-dictionaries)
|
||||
- [RowConvertible Protocol](#rowconvertible-protocol)
|
||||
|
||||
|
||||
Fetch **sequences** of rows, **arrays**, or a **single** row:
|
||||
|
||||
```swift
|
||||
@@ -342,7 +348,7 @@ for (columnName, databaseValue) in row { ... } // ("a", 1), ("a", 2)
|
||||
```
|
||||
|
||||
|
||||
#### RowConvertible
|
||||
#### RowConvertible Protocol
|
||||
|
||||
You may use the `RowConvertible` protocol, which **grants fetching methods to any type** that can be initialized from a database row:
|
||||
|
||||
|
||||
Reference in new issue
Block a user