mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-29 04:24:21 +00:00
New "Documentation diff" section in CHANGELOG
This commit is contained in:
1 parent
5af91c5eab
commit
a6055df756
2 files changed
+15
-3
No files matched your search
@@ -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
|
||||
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user