What's Changed
- Added:
PrimaryKeyedTable
now has aPrimaryKey
primary associated type (#69). - Added:
QueryExpression<Optional>.map,flatMap
for unwrapping optional expressions (#80). - Added:
QueryFragment.prepare
, for preparing SQL and bindings for a database driver (#78). - Added:
Draft
s can now use many of the helpers defined on their parent table type, includingfind
and various dynamic member lookup helpers (#84). - Added:
jsonGroupArray
improvements, includingisDistinct
and an overload for automatically filtering optionals (#60). - Added:
where
andhaving
can now return optional booleans (#61). - Fixed: Remove trailing comma to restore Swift 6.0 support (#75).
- Fixed: Allow
group(by:)
to work with#sql
strings without qualifying the expression type (#79). - Fixed:
QueryExpression.min,max()
now work with any type, not just integers (thanks @Graveion, #76).
New Contributors
Full Changelog: 0.6.0...0.7.0