This commit is contained in:
Gwendal Roué committed 2021-03-10 08:59:40 +01:00
1 parent 9e974a4c96
commit eb0983facd
1 file changed
+1 -1
@@ -170,7 +170,7 @@ struct Place: Codable {
}
```
Such encapsulation of raw columns can happen in many other cases. A second example? The record below exposes a `price: Decimal` ($12.00), and hides the integer column that stores a quantity of cents (1200) (this allows SQLite to compute exact sums of prices):
Such encapsulation of raw columns can happen in many other cases. A second example? The record below exposes a `price: Decimal` ($12.00), and hides the integer column that stores a quantity of cents (1200). Integer columns allow SQLite to compute exact sums of prices when needed:
```swift
struct Product: Codable {