github pointfreeco/swift-structured-queries 0.2.0

latest releases: 0.19.0, 0.18.0, 0.17.1...
4 months ago

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

Don't miss a new swift-structured-queries release

NewReleases is sending notifications on new releases.