Fluent 3.0.0 RC 2.2
Pre-release
Pre-release
New:
- Added
RevertCommandthat can be used to revert migrations.
var commandConfig = CommandConfig.default()
commandConfig.use(RevertCommand.self, as: "revert")
services.register(commandConfig)swift run Run revert- Added
group(by:)method toQueryBuilder. - Added
~~and!~operators for in and not-in subset filters. This applies to databases whose query filter types areDataPredicateRepresentable(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 connectionproperty ofQueryBuilderis now public.Asyncmodule is now exported by default withFluent.
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