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).
The old APIs have been deprecated in favor of these newer, more flexible APIs.
-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))
- Fixed:
Statement
no longer inherits fromHashable
(#203). - Fixed: Generate database functions as
nonisolated
for default main actor support (#205).
Full Changelog: 0.22.3...0.23.0