Skip to content

Releases: Outdooractive/PostgresConnectionPool

v0.7.0

Choose a tag to compare

@trasch trasch released this 12 May 12:57
e8c65e5

Adds a batchId to connections/queries.

v0.6.1

Choose a tag to compare

@trasch trasch released this 11 May 11:14
ccec1c2
  • The pool will now shutdown itself on unrecoverable connection errors
  • Added PostgresConnectionPool.closeIdleConnections()
  • Added PoolInfo.description
  • Added some tests

v0.5.4

Choose a tag to compare

@trasch trasch released this 28 Apr 14:19
  • 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

Choose a tag to compare

@trasch trasch released this 25 Apr 14:24

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

Choose a tag to compare

@trasch trasch released this 25 Apr 14:15
db27471

Added PostgresConnectionPool.poolInfo().

Information about the pool and its open connections.

v0.4.0

Choose a tag to compare

@trasch trasch released this 25 Apr 12:59
a64b91c

Added PoolConfiguration.maxIdleConnections.

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