mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-25 04:07:47 +00:00
Fix typo
This commit is contained in:
1 parent
96a8b46214
commit
eaca12aed1
1 file changed
+1
-1
@@ -236,7 +236,7 @@ struct Player {
|
||||
}
|
||||
```
|
||||
|
||||
The type of the `id` property is an `Int64?` because it matches the `id` column in the `player` table (SQLite numeric ids are 64-bit integers, even on 32-bit platforms). When the id is nil, the player is not yet saved in the database. When the id is not nil, it is the identifier of a player in the database.
|
||||
The type of the `id` property is `Int64?` because it matches the `id` column in the `player` table (SQLite numeric ids are 64-bit integers, even on 32-bit platforms). When the id is nil, the player is not yet saved in the database. When the id is not nil, it is the identifier of a player in the database.
|
||||
|
||||
The `name` and `score` properties are regular `String` and `Int`. They are not optional (`String?` or `Int?`), because we added "not null" constraints on those database columns when we defined the `player` table.
|
||||
|
||||
|
||||
Reference in new issue
Block a user