Skip to content

Releases: SwifQL/PostgresBridge

👨‍🔧Support new version of `postgres-nio`

Choose a tag to compare

@MihaelIsaev MihaelIsaev released this 11 Feb 22:52

postgres-nio doesn't log queries anymore. So now PostgresBridge printing queries in debug logger mode.

👨‍🔧 Temporary stick to `postgres-nio` 1.4.4 cause of bugs in 1.5.0

Choose a tag to compare

@MihaelIsaev MihaelIsaev released this 26 Feb 08:58

⚠️ You might experience unexpected bugs if you updated your packages in last two days and received postgres-nio 1.5.0 which has a lot of changes under the hood and gave us production bugs. I decided to stick PostgresBridge to previous stable version of postgres-nio to prevent these new unresolved problems.

vapor/postgres-nio#143

🏀 Implement `requestConnection` method

Choose a tag to compare

@MihaelIsaev MihaelIsaev released this 06 Jun 13:27

Thanks to @YorkFieldX now we can use PostgresConnection in tests simply this way

// retrieve a connection
let connection = try application.postgres.requestConnection(to: .my_awesome_database).wait()

// execute any queries
let users = try SwifQL.select(User.table.*)
                      .from(User.table)
                      .execute(on: connection)
                      .all(decoding: User.self)
                      .wait()

// don't forget to close a connection
try connection.close().wait()

⚠️Use this way only in tests cause you can only close a connection but not return it back to a pool, so it may affect app performance.

Implement PG_SSL environment key

Pre-release

Choose a tag to compare

@MihaelIsaev MihaelIsaev released this 29 May 16:09
fe560e4

Set PG_SSL=1 or PG_SSL=true or PG_SSL=require environment variable to enable SSL for .psqlEnvironment database identifier.