mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-26 04:07:50 +00:00
README.md
This commit is contained in:
1 parent
eac6d4c074
commit
25d659de0a
1 file changed
+2
-2
@@ -1396,12 +1396,12 @@ class Record {
|
||||
For example:
|
||||
|
||||
```swift
|
||||
// A table with an auto-incremented id:
|
||||
// A table with an auto-incremented primary id and a secondary key:
|
||||
//
|
||||
// CREATE TABLE persons (
|
||||
// id INTEGER PRIMARY KEY,
|
||||
// name TEXT,
|
||||
// email TEXT,
|
||||
// email TEXT UNIQUE COLLATE NOCASE
|
||||
// )
|
||||
class Person : Record {
|
||||
var id: Int64? // Int64 is the preferred type for auto-incremented IDs.
|
||||
|
||||
Reference in new issue
Block a user