Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Releases: vapor/fluent-postgres-driver

2.11.0 - Enable use of idle connection pruning

26 Aug 15:02
@penny-for-vapor penny-for-vapor
cd47a70
This commit was created on GitHub.com and signed with GitHub’s verified signature.
GPG key ID: B5690EEEBB952194
Verified
Learn about vigilant mode.
Compare
Choose a tag to compare
Loading

What's Changed

Enable use of idle connection pruning by @gwynne in #225

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 Postgres driver, enabling Fluent users to take advantage of this new functionality:

app.databases.use(.postgres(
 url: "postgres://user@pass:host/db",
 pruningInterval: .minutes(1),
 maxIdleTimeBeforePruning: .minutes(10)
), as: .psql)

The pruningInterval controls how often the pool will check for idle connections; specifying nil disables idle pruning entirely. The maxIdleTimeBeforePruning controls 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: 2.10.1...2.11.0

Contributors

gwynne and MahdiBM
Assets 2
Loading

2.10.1 - Some minor cleanup

13 Apr 13:16
@penny-for-vapor penny-for-vapor
095bc5a
This commit was created on GitHub.com and signed with GitHub’s verified signature.
GPG key ID: B5690EEEBB952194
Verified
Learn about vigilant mode.
Compare
Choose a tag to compare
Loading

What's Changed

Some minor cleanup by @gwynne in #224

Simple stuff, really - add a .swift-format and 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: 2.10.0...2.10.1

Contributors

gwynne and MahdiBM
Loading

2.10.0 - Adopt Async Shutdown

06 Oct 01:37
@penny-for-vapor penny-for-vapor
fd57101
This commit was created on GitHub.com and signed with GitHub’s verified signature.
GPG key ID: B5690EEEBB952194
Verified
Learn about vigilant mode.
Compare
Choose a tag to compare
Loading

What's Changed

Adopt Async Shutdown by @0xTim in #221

Fixes an issue where Fluent Postgres would hang, especially when installing the NIO Event Loop executor.

Drops support for Swift 5.8

This patch was released by @0xTim

Full Changelog: 2.9.2...2.10.0

Contributors

0xTim
Loading

2.9.2 - Shut down the driver's connection pool safely

24 May 10:57
@penny-for-vapor penny-for-vapor
e2988a8
This commit was created on GitHub.com and signed with GitHub’s verified signature.
GPG key ID: B5690EEEBB952194
Verified
Learn about vigilant mode.
Compare
Choose a tag to compare
Loading

What's Changed

Shut down the driver's connection pool safely by @gwynne in #220

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: 2.9.1...2.9.2

Contributors

gwynne
Loading

2.9.1 - Update required versions of dependencies

16 May 20:12
@penny-for-vapor penny-for-vapor
e44fcc8
This commit was created on GitHub.com and signed with GitHub’s verified signature.
GPG key ID: B5690EEEBB952194
Verified
Learn about vigilant mode.
Compare
Choose a tag to compare
Loading

What's Changed

Update required versions of dependencies by @gwynne in #218

Helps avoid users getting into states where things won’t build. Also fixes a DocC warning.

This patch was released by @gwynne

Full Changelog: 2.9.0...2.9.1

Contributors

gwynne
Loading

2.9.0 - Update package for Sendable, and other cleanup

01 May 15:57
@penny-for-vapor penny-for-vapor
2cc10e8
This commit was created on GitHub.com and signed with GitHub’s verified signature.
GPG key ID: B5690EEEBB952194
Verified
Learn about vigilant mode.
Compare
Choose a tag to compare
Loading

What's Changed

Update package for Sendable, and other cleanup by @gwynne in #217

Adds Sendable correctness and ExistentialAny compliance, bumps min Swift version to 5.8, leverages the new SQLKit functionality, removes .error-level logging (uses .debug instead), updates CI, modernizes README and docs.

This patch was released by @gwynne

Full Changelog: 2.8.0...2.9.0

Contributors

gwynne
Loading

2.8.0 - Update for the nested subpath changes in FluentKit

11 Jul 07:47
@VaporBot VaporBot
a538fc6
This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
GPG key ID: 4AEE18F83AFDEB23
Expired
Verified
Learn about vigilant mode.
Compare
Choose a tag to compare
Loading
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 adds back a missing test that was accidentally lost at some point and 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.) #215

Contributors

gwynne
Loading

Warn about deprecation of old config methods instead of breaking existing code

11 May 18:37
@VaporBot VaporBot
bb3ab8e
This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
GPG key ID: 4AEE18F83AFDEB23
Expired
Verified
Learn about vigilant mode.
Compare
Choose a tag to compare
Loading
This patch was authored and released by @gwynne.

Previously working code which uses the now-deprecated PostgresConfiguration type with the .postgres factory methods (rather than its replacement, SQLPostgresConfiguration) while specifying neither a data encoder or decoder was throwing compiler errors. Such code now issues the intended deprecation warning instead, while continuing to work as before.

Fixes #211

Contributors

gwynne
Loading

Add missing deprecated method

10 May 13:11
@VaporBot VaporBot
0aa809c
This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
GPG key ID: 4AEE18F83AFDEB23
Expired
Verified
Learn about vigilant mode.
Compare
Choose a tag to compare
Loading
This patch was authored and released by @gwynne.

Without this addition, those using the original version of the method receive extremely unhelpful "unable to type-check this expression in reasonable time" errors.

Contributors

gwynne
Loading

Updated to use new PostgresKit/PostgresNIO APIs

09 May 16:01
@VaporBot VaporBot
8817a61
This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
GPG key ID: 4AEE18F83AFDEB23
Expired
Verified
Learn about vigilant mode.
Compare
Choose a tag to compare
Loading
This patch was authored and released by @gwynne.

PostgresKit 2.11.0 heavily revamped PostgresKit to take full (or near to it) advantage of the modern PostgresNIO APIs. These changes do the same for FluentPostgresDriver, including adopting the revisions made to PostgresKit's API. This incidentally results in a significant improvement in the layering of the three packages, with FluentPostgresDriver now relying almost entirely on PostgresKit alone rather than needing to separately know details of PostgresNIO (with one or two exceptions). The end result is much cleaner code and moderate performance improvements.

Swift 5.7 or later is now required.

Users who previously specified custom PostgresDataEncoder and/or PostgresDataDecoder instances in their database configurations will begin receiving deprecation warnings; the replacements are PostgresNIO's PostgresEncodingContext and PostgresDecodingContext:

let postgresEncoder = PostgresDataEncoder(json: JSONEncoder()) // deprecated
let postgresEncodingContext = PostgresEncodingContext(jsonEncoder: JSONEncoder()) // new
let defaultPostgresEncoder = PostgresDataEncoder() // deprecated
let defaultPostgresEncodingContext = PostgresEncodingContext.default // new
let postgresDecoder = PostgresDataDecoder(json: JSONDecoder()) // deprecated
let postgresDecodingContext = PostgresDecodingContext(jsonDecoder: JSONDecoder()) // new
let defaultPostgresDecoder = PostgresDataDecoder() // deprecated
let defaultPostgresDecodingContext = PostgresDecodingContext.default // new

Contributors

gwynne
Loading
Previous 1 3 4 5 6 7
Previous

AltStyle によって変換されたページ (->オリジナル) /