What's Changed
- Renamed:
JSONRepresentation<CodableType>
is nowCodableType.JSONRepresentation
(#27). - Added:
TableColumn.defaultValue
, for runtime introspection of a table struct column's default value (#9). - Added:
@Table
will now generate a compiler error for structs with no column fields (#14). - Added:
having
now employs a result builder for conditionally building predicates (thanks @natemann, #21). - Added: A
Seeds
type for preparing seeds for a database (#29). - Added: Automatic synthesis of
QueryBindable
forLosslessStringConvertible
types (#28). - Added: An overload of
jsonGroupArray
on table columns that can preload a has-many association via JSON (#24). - Fixed: Address compiler error with
@Table
macro-generated code when applied to structs fields with trailing comments (#19). - Fixed: Upserts now specify the primary key as conflict target (#22).
- Fixed: Fixed issue with outer join tables and optional fields causing nested optionals (#23).
- Fixed: Case expressions can return non-optional expressions from a when clause (#26).
- Fixed: Improve interplay between query representable strategies and optional values (#27).
- Fixed: Work around release build compiler crash related to dynamic member lookup on outer join tables (#31).
- Infrastructure: Documentation fixes (thanks @ScottPlease, #7; @marcprux, #11; #17)
- Infrastructure: Reminders demo updates (#25).
New Contributors
- @ScottPlease made their first contribution in #7
- @marcprux made their first contribution in #11
- @natemann made their first contribution in #21
Full Changelog: 0.1.1...0.2.0