Releases: vapor/fluent-mysql-driver
4.8.0 - Enable use of idle connection pruning
What's Changed
Enable use of idle connection pruning by @gwynne in #230
AsyncKit 1.21.0 added support for automatic pruning of idle database connections in the connection pool. This PR adds the necessary configuration parameters to the MySQL driver, enabling Fluent users to take advantage of this new functionality:
app.databases.use(.mysql( url: "mysql://user@pass:host/db", pruningInterval: .minutes(1), maxIdleTimeBeforePruning: .minutes(10) ), as: .mysql)The
pruningIntervalcontrols how often the pool will check for idle connections; specifyingnildisables idle pruning entirely. ThemaxIdleTimeBeforePruningcontrols how long a connection must go unused before being pruned.
Reviewers
Thanks to the reviewers for their help:
This patch was released by @gwynne
Full Changelog: 4.7.1...4.8.0
4.7.1 - Some minor cleanup
What's Changed
Some minor cleanup by @gwynne in #228
Simple stuff, really - add a
.swift-formatand use it, bump the minimum Swift version to 5.10, update the CI and the README. you get the idea.
Reviewers
Thanks to the reviewers for their help:
This patch was released by @gwynne
Full Changelog: 4.7.0...4.7.1
4.7.0 - Adopt Async APIs
What's Changed
Adopt Async APIs by @0xTim in #226
Fixes an issue where Fluent MySQL would hang, especially when installing the NIO Event Loop executor.
Drops support for Swift 5.8
This patch was released by @0xTim
Full Changelog: 4.6.0...4.7.0
4.6.0 - Actually support query logging
What's Changed
Actually support query logging by @gwynne in #225
Now supports query logging with the same semantics as the other drivers.
Also cleans up some
Sendableissues and fixes some warnings in the tests.
This patch was released by @gwynne
Full Changelog: 4.5.1...4.6.0
4.5.1 - Shut down the driver's connection pool safely
What's Changed
Shut down the driver's connection pool safely by @gwynne in #224
Specifically, don’t use the soft-deprecated AsyncKit API that calls
EventLoopFuture.wait()internally; use the one that at least does it with Dispatch (best we can do without changing Fluent’s driver interface).Also updates dependency version requirements.
This patch was released by @gwynne
Full Changelog: 4.5.0...4.5.1
4.5.0 - Update package for Sendable and 100% test coverage
What's Changed
Update package for Sendable and 100% test coverage by @gwynne in #223
Adds
Sendablecorrectness andExistentialAnycompliance, bumps min Swift version to 5.8, leverages the new SQLKit functionality, throws errors instead of crashes, updates CI, modernizes README, and achieves 100% test and documentation coverage.
This patch was released by @gwynne
Full Changelog: 4.4.0...4.5.0
4.4.0 - Update for the nested subpath changes in FluentKit
This patch was authored and released by @gwynne.
vapor/fluent-kit#572 takes advantage of the new support added to SQLKit in vapor/sql-kit#169, so remove the obsolete legacy support here.
Also does some minor tidying.
(Note: Since we now depend on a version of FluentKit that is multiple minor versions newer than before, this must also be semver-minor.) #218
Update min Swift version to 5.6 and make platform versions consistent
This patch was authored and released by @gwynne.
Drop support for Swift 5.4
This patch was authored and released by @gwynne.
Also incudes a round of CI modernizations.
There are no API or functional changes in this version, but the minimum Swift version bump nonetheless requires this to be a semver-minor release.
Explicitly handle a custom ID key set to the empty string
This patch was authored and released by @gwynne.
Treat it as meaning not to retrieve an inserted ID value. This is in support of upcoming FluentKit feature work.