What's Changed
- Added:
QueryExpression.jsonPatch
(#105). - Added:
QueryFragment
can now specifyas:
in interpolation (#106).#sql("\(Date(), as: Date.UnixTimeRepresentation.self)")
- Added: Support for generated columns(thanks @remimarsal, #101; #111; #112).
@Column(generated: .stored) let isPastDue: Bool
- Added:
PrimaryKeyedTable.primaryKey
(#110). - Added:
Table.none
, for producing empty queries (#119). - Re-added: Support for
excluded
keyword in upsert clauses (#98). This was originally added in 0.8.0 but was removed in 0.8.1 to fix a regression. - Fixed:
jsonGroupArray()
consistently applies its filter (thanks @seanwoodward, #104). - Fixed: Apply default scope to
Table.{delete,update}()
(#117). - Fixed:
Where.{and,or,not}()
no longer produces invalid SQL when used with predicate-less queries (#118). - Fixed: Support Archiving for Mac Catalyst (thanks @robfeldmann, #116).
New Contributors
- @seanwoodward made their first contribution in #104
- @remimarsal made their first contribution in #101
- @robfeldmann made their first contribution in #116
Full Changelog: 0.8.1...0.9.0