Releases: vapor/fluent-postgres-driver
Ensure SQLExpression executes are logged
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
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
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
Use `PostgresConfiguration.ianaPortNumber` where possible
This patch was authored and released by @gwynne.
This is a follow-on from vapor/postgres-kit#201.
Support connection pool timeout configuration
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
Docs:
https://docs.vapor.codes/4.0/fluent/overview/
https://docs.vapor.codes/4.0/fluent/model/
https://docs.vapor.codes/4.0/fluent/relations/
https://docs.vapor.codes/4.0/fluent/migration/
https://docs.vapor.codes/4.0/fluent/query/
https://docs.vapor.codes/4.0/fluent/schema/
https://docs.vapor.codes/4.0/fluent/advanced/
More information on Vapor 4 official release:
https://forums.swift.org/t/vapor-4-official-release-begins/34802
Support `.dictionary(of:)` data type
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
FluentKit 1.0.0 GM
This patch was authored and released by @tanner0101.
Updates this package for compatibility with latest version of FluentKit.