Skip to content

Releases: pointfreeco/swift-structured-queries

0.21.0

24 Sep 21:44
23cc67c
Compare
Choose a tag to compare

What's Changed

  • Added: createTemporaryView now supports common table expressions (#176).
  • Added: Support INSTEAD OF triggers (#179).
  • Added: Support defaults in @Selection.Columns.init (#180).
  • Added: PrimaryKeyedTable.find([id]) for finding multiple rows by primary keys (#181).
  • Fixed: Silence warning on Swift 6.0 (#183).
  • Fixed: Properly handle SQL comments in #sql macro diagnostics (#187).
  • Infrastructure: Update docs on temporary views (#182).

Full Changelog: 0.20.0...0.21.0

0.20.0

17 Sep 19:28
Compare
Choose a tag to compare

What's Changed

  • Added: A new, type-safe API for creating temporary views (#172).
  • Fixed: Make join overload consistent with other joins and omit INNER (#170).
  • Fixed: FTS5: Support outer joins and aliased tables by (#171).
  • Fixed: Swift Syntax 602 Support (#174).

Full Changelog: 0.19.1...0.20.0

0.19.1

10 Sep 21:03
f576582
Compare
Choose a tag to compare

What's Changed

  • Fixed: Ensure macro-generated code for multiline @DatabaseFunction signature is formatted correctly (#166).

Full Changelog: 0.19.0...0.19.1

0.19.0

08 Sep 21:40
1b653ab
Compare
Choose a tag to compare

What's Changed

  • Added: Explicit Bool/UInt64 cases to QueryBinding (#164).
  • Fixed: Disambiguate an ambiguous deprecated overload (#162).
  • Fixed: Swift 6.0 support (#165).
  • Infrastructure: Docs updates (#163).

Full Changelog: 0.18.0...0.19.0

0.18.0

05 Sep 23:48
49f18c2
Compare
Choose a tag to compare

What's Changed

Important

See the migration guide for more information.

  • Added: Table.tableFragment to enable basic virtual table syntax (#160, #161).
  • Fixed: Move SQLite functionality into the SQLite module (#157).
  • Fixed: Prefer explicit initialization in selectStar over bit-cast (#159).
  • Infrastructure: Fix sample snippet for Select/map(_:) (thanks @johankool, #158).

New Contributors

Full Changelog: 0.17.1...0.18.0

0.17.1

04 Sep 20:08
Compare
Choose a tag to compare

What's Changed

  • Fixed: User-defined functions with custom query representable types can no longer be called with invalid query expressions to the query output type (#156).
  • Fixed: User-defined functions that take booleans as arguments are now properly bound to the function (#156).

Full Changelog: 0.17.0...0.17.1

0.17.0

03 Sep 18:40
Compare
Choose a tag to compare

What's Changed

  • Added: Support for Void-returning database functions (#155).

Full Changelog: 0.16.0...0.17.0

0.16.0

02 Sep 17:31
14f79c6
Compare
Choose a tag to compare

What's Changed

Important

See the migration guide for more information.

  • Added: @DatabaseFunction has a new as parameter for working with custom query representations (e.g. JSON) (#154).

Full Changelog: 0.15.0...0.16.0

0.15.0

01 Sep 22:19
Compare
Choose a tag to compare

What's Changed

  • Added: @DatabaseFunction for defining custom SQLite functions (#151).
  • Added: Allow createTemporaryTrigger's date-time function to be customized (thanks @connor-ricks, #143).

New Contributors

Full Changelog: 0.14.0...0.15.0

0.14.0

28 Aug 17:27
9f35bc0
Compare
Choose a tag to compare

What's Changed

  • Added: FTS5 bm25 function (#147).
  • Fixed: Avoid introducing empty query fragments to builder (#144).
  • Fixed: Disfavor ambiguous DML overload for optional tables (#150).
  • Infrastructure: Improve FTS docs (#140).
  • Infrastructure: Docs updates/cleanup (#148).

Full Changelog: 0.13.0...0.14.0