Releases: vapor/fluent-sqlite-driver
4.7.2 - Shut down the driver's connection pool safely
What's Changed
Shut down the driver's connection pool safely by @gwynne in #94
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).
This patch was released by @gwynne
Full Changelog: 4.7.1...4.7.2
4.7.1 - Allow using DatabaseSchema.deleteField(_:)` with SQLite
What's Changed
Allow using DatabaseSchema.deleteField(_:)` with SQLite by @gwynne in #92
SQLite has supported
ALTER TABLE ... DROP COLUMN ...
since SQLite 3.35.0, so Fluent no longer needs to restrict this functionality. Fixes #91 - thanks to @wojexe for reporting!Also fixes a DocC warning and updates dependency requirements.
This patch was released by @gwynne
Full Changelog: 4.7.0...4.7.1
4.7.0 - Leverage improvements in SQLKit, SQLiteNIO, and SQLiteKit
What's Changed
Leverage improvements in SQLKit, SQLiteNIO, and SQLiteKit by @gwynne in #90
Several improvements:
- Swift minimum version is now 5.8, minimum dependency versions updated
Sendable
andExistentialAny
correctness- README and docs cleanup, updated CI
- Added support for custom JSON encoders and decoders
- Added working support for setting the query logging level
- Most operations are now routed through SQLiteKit rather than duplicating code, making behavior more consistent (and very slightly faster)
- The new extended SQLite errors are now supported correctly (
DatabaseError.isConstraintFailure
works again).- The
maxConnectionsPerEventLoop
setting is now ignored, as increasing it beyond 1 increases thread contention with no additional parallelism.
This patch was released by @gwynne
Full Changelog: 4.6.0...4.7.0
4.6.0 - Miscellaneous tidying
What's Changed
Miscellaneous tidying by @gwynne in #88
Minimum Swift version has been bumped to 5.7 to match Vapor and Fluent; everything else is cosmetic or behind the scenes.
Reviewers
Thanks to the reviewers for their help:
This patch was released by @gwynne
Full Changelog: 4.5.0...4.6.0
4.5.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.) #87
Update min Swift version to 5.6 and make platform versions consistent
This patch was authored and released by @gwynne.
Add experimental support for watchOS
Drop support for Swift 5.4
This patch was authored and released by @gwynne.
Minimum supported version is now Swift 5.5.
Also includes the same upgrades to CI as those found in vapor/sqlite-kit#100 (most notably, adding the API breakage check and code coverage).
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.
Add configurable connection pool timeout
This patch was authored by @madsodgaard and released by @0xTim.
Adds option to configure the connection pool timeout (#74)
databases.use(.sqlite(.memory, connectionPoolTimeout: .minutes(1)), as: .sqlite)