Skip to content

Releases: vapor/fluent-postgres-driver

Ensure SQLExpression executes are logged

11 Oct 16:39
0b7a43c
Compare
Choose a tag to compare
This patch was authored and released by @0xTim.

Adds logging to calls to SQLDatabase.execute(sql:) to match the calls used by Fluent so queries such as raw queries are logged

Make SQL Log Level Configurable

11 Sep 09:57
c5ec19d
Compare
Choose a tag to compare
This patch was authored and released by @0xTim.

Adds the option to set the log level at which SQL queries are logged. Defaults to .debug.

Log SQL of queries in when log level set to debug mode

12 Jul 13:47
afe159c
Compare
Choose a tag to compare
This patch was authored and released by @0xTim.

Brings back logging when the log level is set to debug mode for queries. Will print the SQL and any binds depending on the queries being executed.

2.1.2

04 Dec 08:49
11d4fce
Compare
Choose a tag to compare

Update the Postgres NIO dependency to the correct version with the APIs Fluent Postgres Driver uses (#175 )

Use `PostgresConfiguration.ianaPortNumber` where possible

03 Nov 07:16
0a925f4
Compare
Choose a tag to compare
This patch was authored and released by @gwynne.

This is a follow-on from vapor/postgres-kit#201.

Support connection pool timeout configuration

15 Jul 18:52
f310f88
Compare
Choose a tag to compare
This patch was authored by @mattpolzin and released by @tanner0101.

Allows for configuration of connection pool timeouts (#161).

The connection pool timeout defines the maximum amount of time allowed for requesting a connection from the pool. This helps to prevent deadlock.

try app.databases.use(.postgres(
    configuration: ...,
    connectionPoolTimeout: .minutes(1)
), as: .psql)

The default timeout is 10 seconds.

FluentPostgresDriver 2.0.0

Support `.dictionary(of:)` data type

13 Jun 00:53
2e76609
Compare
Choose a tag to compare
Pre-release
This patch was authored and released by @tanner0101.

Updates to .dictionary(of:) data type added in FluentKit 1.0.0-rc.2.7 (#156).

Fix transaction rollback with top-level throw

13 Jun 02:51
a3d6587
Compare
Choose a tag to compare

Adds a catchFlatMap to rollback transaction when the transaction closure throws an error (#90, fixes #89).

FluentKit 1.0.0 GM

29 May 21:53
8828d56
Compare
Choose a tag to compare
FluentKit 1.0.0 GM Pre-release
Pre-release
This patch was authored and released by @tanner0101.

Updates this package for compatibility with latest version of FluentKit.