mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-26 04:07:50 +00:00
RowAdapter documentation
This commit is contained in:
1 parent
3a766cd826
commit
ec07380055
1 file changed
+4
-4
@@ -1546,11 +1546,11 @@ RowConvertible consume row columns by name:
|
||||
```swift
|
||||
extension PointOfInterest : RowConvertible {
|
||||
init(_ row: Row) {
|
||||
id = row.value(named: "id")
|
||||
title = row.value(named: "title")
|
||||
id = row.value(named: "id") // "id"
|
||||
title = row.value(named: "title") // "title"
|
||||
coordinate = CLLocationCoordinate2DMake(
|
||||
row.value(named: "latitude"),
|
||||
row.value(named: "longitude"))
|
||||
row.value(named: "latitude"), // "latitude"
|
||||
row.value(named: "longitude")) // "longitude"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
Reference in new issue
Block a user