Skip to content

0.2.0

Choose a tag to compare

@stephencelis stephencelis released this 30 Apr 16:50
· 179 commits to main since this release
71657e2

What's Changed

  • Renamed: JSONRepresentation<CodableType> is now CodableType.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 for LosslessStringConvertible 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

Full Changelog: 0.1.1...0.2.0