Skip to content

Releases: pointfreeco/swift-structured-queries

0.6.0

10 Jun 16:53

Choose a tag to compare

What's Changed

  • Added: Expand optional protocol to abstract some and none. #63
  • Added: Fix Table.count(filter:), etc. #66
  • Added: Insert with specific unique constraint by @rcarver in #56
  • Fixed: Macro fixes for release/archive builds and Swift 6.2. #71

New Contributors

Full Changelog: 0.5.1...0.6.0

0.5.1

05 Jun 20:28
9045819

Choose a tag to compare

What's Changed

  • Fixed: Disfavor some operator overloads to avoid ambiguity (#62).
  • Fixed: Add missing Select.select overload (#64).
  • Infrastructure. Documentation fixes (thanks @agarrharr, #58).
  • Infrastructure: Improve release workflow (thanks @mackoj, #59).

New Contributors

Full Changelog: 0.5.0...0.5.1

0.5.0

29 May 20:15
f4af591

Choose a tag to compare

What's Changed

  • Added: StructuredQueriesTagged package trait, for StructuredQueries bindings to swift-tagged (#13).
  • Added: DISTINCT support for jsonGroupArray (thanks @mackoj, #57).
  • Added: Missing conditional conformances to TableAlias (#54).
  • Fixed: Ensure Codable.JSONRepresentation dates decode using the correct format (thanks @rosskimes, #53).
  • Infrastructure: New table definition documentation (#55).

New Contributors

Full Changelog: 0.4.0...0.5.0

0.4.0

26 May 20:43

Choose a tag to compare

What's Changed

  • Added: Date and UUID are now directly bindable in queries (#37).
  • Fixed: A macro expansion issue affecting optional primary keys has been addressed (#51).

Full Changelog: 0.3.0...0.4.0

0.3.0

23 May 15:33

Choose a tag to compare

What's Changed

  • Added: Support for explicit schema names (#43).
  • Fixed: Broaden SwiftSyntax dependency (#32).
  • Fixed: Require jsonGroupArray take a bindable argument to avoid generating invalid SL (#34).
  • Fixed: PrimaryKeyedTable.find takes a UUID now (instead of the representation) (#35).
  • Fixed: Use StructuredQueriesCore module name in macro expansion (#42).
  • Fixed: Chaining limits will no longer nil out the current offset (#48).
  • Fixed: between no longer generates invalid SQL (#47).
  • Infrastructure: Fix anchor link in Query cookbook docs (thanks @juliensagot, #38).
  • Infrastructure: Add important note about Safe SQL strings docs (#41).
  • Infrastructure: Add more docs for #bind (#46).

New Contributors

Full Changelog: 0.2.0...0.3.0

0.2.0

30 Apr 16:50
71657e2

Choose a tag to compare

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

0.1.1

22 Apr 17:20
f157e60

Choose a tag to compare

What's Changed

  • Fixed: Allow dynamic member lookup on optional table definitions to chain into non-column expressions (#2).
  • Fixed: Define == in terms of any QueryExpression to work around resolution bug in update clauses (#3).
  • Infrastructure: Add GitHub actions (#1).
  • Infrastructure: Documentation fixes (thanks @tevelee, #4).

New Contributors

Full Changelog: 0.1.0...0.1.1

0.1.0

21 Apr 17:27

Choose a tag to compare

  • Initial release