diff --git a/README.md b/README.md index a3d066f9b..b89f13eb2 100644 --- a/README.md +++ b/README.md @@ -701,7 +701,7 @@ try dbQueue.inDatabase { db in There are three kinds of primary keys: -- **RowID**: use it when you rely on SQLite to automatically generate IDs (see https://www.sqlite.org/autoinc.html). +- **RowID**: use it when you rely on automatically generated IDs in an `INTEGER PRIMARY KEY` column. Beware GRDB.swift does not support the special `ROWID` column (see https://www.sqlite.org/autoinc.html for more information). - **Column**: for single-column primary keys that are not managed by SQLite. diff --git a/TODO.md b/TODO.md index b3c3a9602..b0335ebf9 100644 --- a/TODO.md +++ b/TODO.md @@ -1,4 +1,3 @@ -- [ ] RowModel support for implicit RowID column (see https://www.sqlite.org/autoinc.html) - [ ] Fetch with a collection of primary keys: db.fetch(RowModel.type, primaryKeys:[...]). Problem: users will often want to sort, so the plain SELECT * FROM persons WHERE id IN (?,?,?) won't be appreciated. Needs more thought. - [ ] Let Bindings eat arrays, or make it easy to generate series of ?,?,?,? - [X] Pierlo complains that databaseDictionary returns a dictionary of values when updateFromDatabaseRow eats a Row. See if we can do something about that. Experiment with a setDatabaseValueForKey API.