mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-29 04:24:21 +00:00
Issue #60: PrimaryKey documentation
This commit is contained in:
1 parent
0b24721b4a
commit
87992f9e75
1 file changed
+1
-1
@@ -1267,7 +1267,7 @@ Primary key is nil when table has no primary key:
|
||||
let itemPk = try db.primaryKey("items") // nil
|
||||
```
|
||||
|
||||
Primary keys have one or several columns. When the primary key has a single column, it may contain the [row id](https://www.sqlite.org/autoinc.html):
|
||||
Primary keys have one or several columns. Single-column primary keys may contain the auto-incremented [row id](https://www.sqlite.org/autoinc.html):
|
||||
|
||||
```swift
|
||||
// CREATE TABLE persons (
|
||||
|
||||
Reference in new issue
Block a user