GRDB.swift v5.6.0 Release Notes
-
๐ Released March 12, 2021 • diff
๐ Fixed: #933: Fix DatabaseMigrator.eraseDatabaseOnSchemaChange in the context of shared databases
๐ Fixed: #934: Fix a crash in the ValueObservation publisher
๐ New: #936: Complete Associations and the DerivableRequest Protocol
๐ New: Database cursors can feed more standard Swift collections:
Array(cursor, minimumCapacity: ...)
,Dictionary(uniqueKeysWithValues: cursor)
, etc (see [Cursors](README.md#cursors)).๐ Documentation update: The [Associations Guide](Documentation/AssociationsBasics.md) has gained a new [Further Refinements to Associations](Documentation/AssociationsBasics.md#further-refinements-to-associations) chapter which shows the new association methods brought by #936.
๐ Documentation update: The [Good Practices for Designing Record Types](Documentation/GoodPracticesForDesigningRecordTypes.md) guide has an updated [Define Record Requests](Documentation/GoodPracticesForDesigningRecordTypes.md#define-record-requests) chapter, now that the
DerivableRequest
protocol has access tolimit
,distinct
,group
,having
, association aggregates, and common table expressions.๐ Documentation update: The [Good Practices for Designing Record Types](Documentation/GoodPracticesForDesigningRecordTypes.md) guide has a new chapter of good practices: [Record Types Hide Intimate Database Details](Documentation/GoodPracticesForDesigningRecordTypes.md#record-types-hide-intimate-database-details).
๐ Documentation update: A new [Single-Row Tables](Documentation/SingleRowTables.md) guide provides guidance for designing tables that store configuration values, user preferences, and generally some global application state.