Skip to content

Releases: Outdooractive/PostgresConnectionPool

v0.7.0

12 May 12:57
e8c65e5
Compare
Choose a tag to compare

Adds a batchId to connections/queries.

v0.6.1

11 May 11:14
ccec1c2
Compare
Choose a tag to compare
  • The pool will now shutdown itself on unrecoverable connection errors
  • Added PostgresConnectionPool.closeIdleConnections()
  • Added PoolInfo.description
  • Added some tests

v0.5.4

28 Apr 14:19
Compare
Choose a tag to compare
  • Nicer error for query timeouts
  • Remove the default query timeout since this might not be what's expected
  • Cleaning up the logic for how we dish out connections - there where cases where connections could get stuck

v0.5.1

25 Apr 14:24
Compare
Choose a tag to compare

Also forward the sql extension from PostgresKit.

try await pool.connection({ connection in
    try await connection.sql()
        .delete(from: "incoming")
        .where("logtime", .lessThan, Date(timeIntervalSinceNow: -seconds))
        .run()
})

v0.5.0

25 Apr 14:15
db27471
Compare
Choose a tag to compare

Added PostgresConnectionPool.poolInfo().

Information about the pool and its open connections.

v0.4.0

25 Apr 12:59
a64b91c
Compare
Choose a tag to compare

Added PoolConfiguration.maxIdleConnections.

This controls how many connections can be idle (over a 60 seconds period).