Releases: vapor/postgres-nio
Fix warnings + update CI
This patch was authored and released by @tanner0101.
Fix Xcode 12 beta 3 warnings and add additional test cases to CI (#117).
Support parameter status messages in query / simpleQuery
This patch was authored and released by @tanner0101.
Adds support for parameter status (S) messages in query and simpleQuery calls (#116, fixes #115).
Add support for VARCHAR[]
This patch was authored and released by @tanner0101.
Adds support for CHARACTER VARYING[] a.k.a VARCHAR[] (#114, fixes #113).
Support remote close
This patch was authored and released by @tanner0101.
Adds support for recognizing a remote close as calling close() (fixes #107, #110)
RawRepresentable + PostgresData
This patch was authored and released by @tanner0101.
Add default PostgresDataConvertible conformance to RawRepresentable where the raw value is postgres convertible (#105, vapor/postgres-kit#179).
Too many binds error
This patch was authored and released by @tanner0101.
Throw an error if too many binds (>= Int16.max) are sent in a parameterized query (#103, fixes #102).
PostgresNIO 1.0.0
Docs:
https://github.com/vapor/postgres-nio/blob/master/README.md
More information on Vapor 4 official release:
https://forums.swift.org/t/vapor-4-official-release-begins/34802
Add query metadata
This patch was authored and released by @tanner0101.
Adds new API for accessing query metadata via conn.query (fixes #93).
conn.query("...", onMetadata: { metadata in
print(metadata.rows) // Int?
}) { row in
print(row) // PostgresRow
}.wait()This is a breaking change since conn.query now returns PostgresQueryResult instead of [PostgresRow]. However, PostgresQueryResult conforms to Collection so most code should be unaffected.
let result = try conn.query("...").wait()
for row in result {
print(row) // PostgresRow
}
print(result.metadata) // PostgresQueryMetadata
print(result.rows) // [PostgresRow]Update to Metrics 2.0
This patch was authored and released by @tanner0101.
Updates to SwiftMetrics 2.0 which adds a new case the TimeUnit enum (#88, fixes #87)
Send terminate message on close
This patch was authored and released by @tanner0101.
A postgres terminate (X) message is now sent before the connection closes (#86, fixes #84).