Update client libs for test_runner/pg_clients to their latest versions (#4092)

Also, use Workaround D for `swift/PostgresClientKitExample`, 
which supports neither SNI nor connections options
This commit is contained in:
Alexander Bayandin
2023-05-04 18:22:04 +01:00
committed by GitHub
parent 88f39c11d4
commit 291b4f0d41
21 changed files with 375 additions and 211 deletions

View File

@@ -14,15 +14,11 @@ await Task {
let sslContext = try! NIOSSLContext(configuration: .makeClientConfiguration())
let config = PostgresConnection.Configuration(
connection: .init(
host: env["NEON_HOST"] ?? "",
port: 5432
),
authentication: .init(
username: env["NEON_USER"] ?? "",
database: env["NEON_DATABASE"] ?? "",
password: env["NEON_PASSWORD"] ?? ""
),
host: env["NEON_HOST"] ?? "",
port: 5432,
username: env["NEON_USER"] ?? "",
password: env["NEON_PASSWORD"] ?? "",
database: env["NEON_DATABASE"] ?? "",
tls: .require(sslContext)
)
@@ -42,7 +38,7 @@ await Task {
try await connection.close()
// Shutdown the EventLoopGroup, once all connections are closed.
try eventLoopGroup.syncShutdownGracefully()
try await eventLoopGroup.shutdownGracefully()
} catch {
print(error)
}