Releases: pointfreeco/swift-structured-queries
Releases · pointfreeco/swift-structured-queries
0.25.1
0.25.0
What's Changed
- Added:
@Columnsnow supportsasparameter (#214). - Fixed: Allow values to be bound in
createTemporaryViewstatements (#215). - Deprecated: Hard-deprecate SQLite
ORconflict resolution (#212). - Infrastructure: Docs fixes (thanks @ScottPlease, #213; @juliensagot, #217).
- Infrastructure: Add test coverage for enum selections (thanks @acosmicflamingo, #216).
New Contributors
- @acosmicflamingo made their first contribution in #216
Full Changelog: 0.24.0...0.25.0
0.24.0
What's Changed
- Added: You can now define your own aggregate functions (#207).
Full Changelog: 0.23.2...0.24.0
0.23.2
What's Changed
- Fixed: Fix macro-generated code for Swift <6.2 (#211).
Full Changelog: 0.23.1...0.23.2
0.23.1
What's Changed
- Fixed: Address issue where an enum
@Selectionmacro was generating incorrect query-building code for its nestedTable.Columnstype (#208).
Full Changelog: 0.23.0...0.23.1
0.23.0
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:
Statementno longer inherits fromHashable(#203). - Fixed: Generate database functions as
nonisolatedfor default main actor support (#205).
Full Changelog: 0.22.3...0.23.0
0.22.3
What's Changed
- Fixed: Add conditional conformances for selection protocol (#204).
- Infrastructure: Add note to draft docs about conformances (#201).
Full Changelog: 0.22.2...0.22.3
0.22.2
What's Changed
- Fixed: Restore default main actor isolation + Swift 6 language mode support, which regressed in 0.22.0 due to newly generated macro code (#200).
- Infrastructure: reduce churn in trigger tests (#197).
Full Changelog: 0.22.1...0.22.2
0.22.1
What's Changed
- Fixed: Improve performance of macro-expanded code to avoid complex expression compilation sluggishness in larger tables (#196).
Full Changelog: 0.22.0...0.22.1
0.22.0
What's Changed
- Added:
@Table/@Selectionimprovements for better composition, including nested column groupings, enums, and more (#184). - Fixed:
@Tableshould not fail with comments on properties with defaults (#194). - Infrastructure: documentation improvements (thanks @Narsail, #188).
New Contributors
Full Changelog: 0.21.0...0.22.0