Point-Free Pointers
Read post

New in SQLiteData: Sectioned queries

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.

    #backend#swift#swiftui#sqlite
Jul 27•8m read time•From pointfree.co
Post cover image
644 Impressions
Point-Free Pointers's image
Point-Free Pointers

PointFree's platform is a resource for Swift developers, offering insights into functional programmi...

16 Followers

•

69 Upvotes

Would you recommend this post?

Copy link
WhatsApp
Facebook
X
New Squad
  • © 2026 Daily Dev Ltd.
  • Guidelines
  • Explore
  • Tags
  • Sources
  • Squads
  • Leaderboard