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 to limit, 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.