diff --git a/CHANGELOG.md b/CHANGELOG.md index e4f38f2ab..2153c2622 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -116,6 +116,18 @@ Release Notes - `RowConvertible.fetchCursor(_:keys:)` returns a non-optional cursor. +**Documentation diff** + +- [Installation instructions for WatchOS](https://github.com/groue/GRDB.swift#installation) have been updated. +- The [description of database pools](https://github.com/groue/GRDB.swift#database-pools) has been enhanced. +- The [description of cursors](https://github.com/groue/GRDB.swift#cursors) has been enhanced. +- The [Usage of raw SQLite pointers](https://github.com/groue/GRDB.swift#raw-sqlite-pointers) chapter has been updated for the new `SQLite3` standard module. +- A new [Record Protocols Overview](https://github.com/groue/GRDB.swift#record-protocols-overview) chapter has been added. +- A new [Codable Records](https://github.com/groue/GRDB.swift#codable-records) chapter has been added. +- A new [Columns Selected by a Request](https://github.com/groue/GRDB.swift#columns-selected-by-a-request) chapter describes the new `TableMapping.databaseSelection` property. +- The [Exposing the RowID Column](https://github.com/groue/GRDB.swift#exposing-the-rowid-column) chapter has been updated for the new `TableMapping.databaseSelection` property. + + **API diff** ```diff diff --git a/README.md b/README.md index 6230b5aef..9548b9ad5 100644 --- a/README.md +++ b/README.md @@ -612,7 +612,7 @@ The `fetchAll()` method returns a regular Swift array, that you iterate like all ```swift try dbQueue.inDatabase { db in // [Player] - let players = Player.fetchAll(db, "SELECT ...") + let players = try Player.fetchAll(db, "SELECT ...") for player in players { // use player } @@ -624,8 +624,8 @@ Unlike arrays, cursors returned by `fetchCursor()` load their results step after ```swift try dbQueue.inDatabase { db in // Cursor of Player - let players = Player.fetchCursor(db, "SELECT ...") - while let player = players.next() { + let players = try Player.fetchCursor(db, "SELECT ...") + while let player = try players.next() { // use player } }