github pointfreeco/swift-structured-queries 0.23.0

18 hours ago

What's Changed

Important

This release contains a breaking change (#203) that is necessary to avoid bugs related to subquery comparison operations, as well as bugs in synthesized Equatable conformances on Table types. Please start a discussion if this release introduces breaking changes that you need help fixing.

  • Added: New APIs for creating temporary triggers that "touch" columns (#202).
    -Reminder.createTemporaryTrigger(afterInsertTouch: { new in
    +Reminder.createTemporaryTrigger(after: .insert { new in
       new.position =
         Reminder
         .where { $0.remindersListID.eq(new.remindersListID) }
         .select { $0.position.max() + 1 }
         ?? 0
     })
    
    -Reminder.createTemporaryTrigger(afterUpdateTouch: \.updatedAt)
    +Reminder.createTemporaryTrigger(after: .update(touch: \.updatedAt))
    The old APIs have been deprecated in favor of these newer, more flexible APIs.
  • Fixed: Statement no longer inherits from Hashable (#203).
  • Fixed: Generate database functions as nonisolated for default main actor support (#205).

Full Changelog: 0.22.3...0.23.0

Don't miss a new swift-structured-queries release

NewReleases is sending notifications on new releases.