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
92682cb11f
commit
a1d9bf297f
1 file changed
+2
-2
@@ -1279,7 +1279,7 @@ class Person : RowConvertible {
|
||||
class Book : RowConvertible {
|
||||
var id: Int64?
|
||||
var title: String
|
||||
var person: Author?
|
||||
var author: Person?
|
||||
|
||||
init(_ row: Row) {
|
||||
id = row.value(named: "id")
|
||||
@@ -1287,7 +1287,7 @@ class Book : RowConvertible {
|
||||
|
||||
// Consume the subrow:
|
||||
if let authorRow = row.subrow(named: "author") {
|
||||
person = Person(row: authorRow)
|
||||
author = Person(row: authorRow)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user