SQLiteData 1.8.0 introduces sectioned queries via a new `sectionBy:` argument on `@FetchAll`, allowing developers to group query results into named sections using any SQL expression — not just key paths of string properties. Unlike SwiftData's sectioning (restricted to modern Apple OSes and string key paths), SQLiteData's approach works back to iOS 13, supports arbitrary SQL expressions including joins, NULL ordering, and descending clauses, and evaluates grouping directly in SQLite's ORDER BY clause rather than in memory. The release also brings `fetchAll(_:sectionBy:)` to `FetchKeyRequest`, enabling strongly-typed section names using any hashable value such as custom enums, avoiding stringly-typed parsing and impossible default cases.
644 Impressions