mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-28 04:24:20 +00:00
README.md
This commit is contained in:
1 parent
34f911399a
commit
6790a4d6ab
1 file changed
+1
-1
@@ -1267,7 +1267,7 @@ Yes, that's not very [DRY](http://c2.com/cgi/wiki?DontRepeatYourself), and there
|
||||
> :point_up: **Note**: The `updateFromRow` method MUST NOT assume the presence of particular columns. The Record class itself reserves the right to call `updateFromRow` with arbitrary columns. The following implementation is thus discouraged:
|
||||
>
|
||||
> ```swift
|
||||
> // BAD: this implementation may crash with "No such column" errors:
|
||||
> // BAD: this implementation will eventually crash with "No such column" errors:
|
||||
> override func updateFromRow(row: Row) {
|
||||
> self.id = row.value(named: "id")
|
||||
> self.age = row.value(named: "age")
|
||||
|
||||
Reference in new issue
Block a user