Skip to content

Fluent 3.0.0 RC 2.2

Pre-release
Pre-release
Compare
Choose a tag to compare
@tanner0101 tanner0101 released this 25 Mar 23:15
· 353 commits to main since this release
ff1d9a9

New:

var commandConfig = CommandConfig.default()
commandConfig.use(RevertCommand.self, as: "revert")
services.register(commandConfig)
swift run Run revert
  • Added group(by:) method to QueryBuilder.
  • Added ~~ and !~ operators for in and not-in subset filters. This applies to databases whose query filter types are DataPredicateRepresentable (the SQL-like dbs).
query.filter(\.name ~~ ["Foo", "Bar", "Baz"]) // name in (Foo, Bar, Baz)
  • Changed pivot table name connector from + to _. There is now a global stored property to change this connector: Fluent.pivotNameConnector
  • connection property of QueryBuilder is now public.
  • Async module is now exported by default with Fluent.

API Docs:
https://api.vapor.codes/fluent/3.0.0-rc.2.2/Fluent/
https://api.vapor.codes/fluent/3.0.0-rc.2.2/FluentSQL/

Milestone:
3.0.0-rc.2.2