mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-29 04:24:21 +00:00
Documentation
This commit is contained in:
1 parent
c659849ced
commit
f3b1471fc4
1 file changed
+3
-8
@@ -31,15 +31,10 @@ Usage:
|
||||
override var storedDatabaseDictionary: [String: DatabaseValueConvertible?] {
|
||||
return ["birthDate": birthDate, ...]
|
||||
}
|
||||
|
||||
|
||||
override func updateFromRow(row: Row) {
|
||||
for (column, dbv) in row {
|
||||
switch column {
|
||||
case "birthDate": birthDate = dbv.value()
|
||||
case ...
|
||||
}
|
||||
}
|
||||
super.updateFromRow(row) // Subclasses are required to call super.
|
||||
if let dbv = row["birthDate"] { birthDate = dbv.value() }
|
||||
...
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user