Releases: vapor-community/sql-kit-extras
0.0.9 - Add new variadic helpers
Add several new helpers:
SQLRow.decode(columnsOf:_:)SQLQueryFetcher.first(decodingColumnsOf:_:)SQLQueryFetcher.all(decodingColumnsOf:_:)SQLUnqualifiedColumnListBuilder.columns(of:_:)SQLInsertBuilder.columns(of:_:)
These helpers work exactly the same as the variadic .columns(_:) helpers, allowing you to specify multiple Fluent key paths in one call, except that these helpers require you to specify a single model at the start of the list to which all of the key paths apply. In other words, this line:
insert.column(of: FooModel.self, \.$field1, \.$field2, \.$field3)is exactly the same as this line:
insert.columns(\FooModel.$field1, \FooModel.$field2, \FooModel.$field3)Which style you prefer when dealing with lots of columns from the same model is up to you; there is no difference in behavior or performance.
What's Changed
Full Changelog: 0.0.8...0.0.9
0.0.8 - Fix SendableMetatype handling
Well, I say "fix", more like this is a slightly better workaround.
0.0.7 - Add string interpolations, fix CAST for MySQL
What's Changed
- Fix
SQLCastExpressionfor MySQL by @ptoffy in #4 - Add a couple of interpolations for SQLQueryString that take Fluent keypaths by @gwynne in #5
Full Changelog: 0.0.6...0.0.7
0.0.6 - Lower macOS platform requirement, add AsyncSQLMigration
- The macOS platform requirement is now
.v10_15instead of.v13, since we don't actually require anything newer. - Added
AsyncSQLMigrationtoFluentSQLKitExtras.
0.0.5 - Fix package name
The package name in Package.swift now matches the package's filesystem name. This is purely cosmetic and has no functional effect at all.
0.0.4 - Add a couple of new utilities
Added FluentSQLKitExtras utilities for SQLInsertBuilder.ignoringConflicts(with:) and SQLInsertBuilder.onConflict(with:do:).
0.0.3 - Upgrade PostgreSQLCastExpression to SQLCastExpression
SQLCastExpression uses the standard CAST(foo AS type) casting syntax supported by all existing database drivers.
0.0.2 - AliasProperty needs to import Foundation
I'm not too clear on why this is needed, but it seems that it is.
0.0.1 - Initial release
This is the first version of this package. Please read the README. Seriously.