Skip to content

Releases: vapor/postgres-nio

Support remote close

11 Jul 18:08
944706b
Compare
Choose a tag to compare
This patch was authored and released by @tanner0101.

Adds support for recognizing a remote close as calling close() (fixes #107, #110)

RawRepresentable + PostgresData

24 Apr 20:47
Compare
Choose a tag to compare
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

24 Apr 17:53
93e9843
Compare
Choose a tag to compare
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

22 Apr 14:05
81a309a
Compare
Choose a tag to compare

Add query metadata

03 Apr 17:07
a528171
Compare
Choose a tag to compare
Add query metadata Pre-release
Pre-release
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

06 Mar 17:50
4871046
Compare
Choose a tag to compare
Update to Metrics 2.0 Pre-release
Pre-release
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

04 Mar 22:30
037c0c7
Compare
Choose a tag to compare
Pre-release
This patch was authored and released by @tanner0101.

A postgres terminate (X) message is now sent before the connection closes (#86, fixes #84).

Release Candidate 1

28 Feb 19:57
3bf4f6e
Compare
Choose a tag to compare
Release Candidate 1 Pre-release
Pre-release

Updates to Swift 5.2 and macOS 10.15. Replaces CMD5 module with SwiftCrypto.

Release candidates represent the final shift toward focusing on bug fixes and documentation. Breaking changes will only be accepted for critical issues. We expect a final release of this package shortly after Swift 5.2's release date.

Support Swift.Set

19 Feb 20:19
18fec1c
Compare
Choose a tag to compare
Support Swift.Set Pre-release
Pre-release

Adds support for converting Swift.Set to / from a native Postgres array.

Handle NAME Type in PropertyData.string Property

18 Feb 19:34
79da46b
Compare
Choose a tag to compare

Allows data that is contained as the .name type to be accessed through the PostgresData.string property.

var buffer = ByteBufferAllocator().buffer(capacity: 13)
buffer.writeString("password_hash")

let data = PostgresData(.name, value: buffer)
let string = data.string

// string == "password_hash"