This commit is contained in:
Gwendal Roué committed 2019-04-13 17:06:41 +02:00
1 parent 9efc20fa51
commit 1af55653d3
1 file changed
+1 -1
+1 -1
View File
@@ -175,7 +175,7 @@ Otherwise:
}
```
A record type can conforms to EncodableRecord via the [PersistableRecord] protocol. However, PersistableRecord also grants [persistence methods], the ones that are able to insert, update, and delete rows in the database. When you'd rather keep a record type read-only, and yet profit from associations, all you need is EncodableRecord.
A record type can conform to EncodableRecord via the [PersistableRecord] protocol. However, PersistableRecord also grants [persistence methods], the ones that are able to insert, update, and delete rows in the database. When you'd rather keep a record type read-only, and yet profit from associations, all you need is EncodableRecord.
EncodableRecord conformance can be derived from the standard Encodable protocol. See [Codable Records] for more information.