Releases: vapor/fluent-postgres-driver
Support adding multiple enum cases at once
Bump postgres-kit to 2.5.1
This patch was authored by @sketchmaster2001 and released by @0xTim.
postgres-kit has been updated to fix build conflicts with swift-nio. This bumps the postgres-kit version to fix build errors.
Make `DatabaseError.isConnectionClosed` functional
This patch was authored and released by @gwynne.
DatabaseError.isConnectionClosed now has the value true when the underlying error is PostgresError.connectionClosed.
Also avoids double-running the FluentBenchmark tests (same change as fluent-sqlite-driver#75) and actually runs the tests on Linux now.
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