mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-24 04:07:47 +00:00
Enhance Codable Record documentatoin
This commit is contained in:
1 parent
c43800f40d
commit
7610eebb3f
1 file changed
+1
-1
@@ -2631,7 +2631,7 @@ try dbQueue.write { db in
|
||||
|
||||
Codable records encode and decode their properties according to their own implementation of the Encodable and Decodable protocols. Yet databases have specific requirements:
|
||||
|
||||
- A property prefers its database representation when it has one (all [values](#values) that adopt the [DatabaseValueConvertible](#custom-value-types) protocol).
|
||||
- Properties are always coded according to their preferred database representation, when they have one (all [values](#values) that adopt the [DatabaseValueConvertible](#custom-value-types) protocol).
|
||||
- You can customize the encoding and decoding of dates and uuids.
|
||||
- Complex properties (arrays, dictionaries, nested structs, etc.) are stored as JSON.
|
||||
|
||||
|
||||
Reference in new issue
Block a user