Releases: vapor/postgres-nio
Releases · vapor/postgres-nio
PostgresNIO 1.0.0 Beta 2.2
- Added
PostgresConnection.addListener(channel:handler:)
(#60)
This method lets you add handlers for LISTEN
/ NOTIFY
messages.
// add notification listener to connection
conn.addListener(channel: "example") { context, notification in
print(notification) // notification payload
context.stop() // stop listening
}
// subscribe to notifications on this connection
_ = try conn.simpleQuery("LISTEN example").wait()
// send notification w/ empty payload
_ = try conn.simpleQuery("NOTIFY example").wait()
PostgresNIO 1.0.0 Beta 2.1
- Fixes
PostgresData(double:)
byte serialization (#65)
PostgresNIO 1.0.0 Beta 2
PostgresNIO 1.0.0 Alpha 1.6
PostgresNIO 1.0.0 Alpha 1.5
PostgresNIO 1.0.0 Alpha 1.4
PostgresNIO 1.0.0 Alpha 1.3
New:
PostgresData(bytes:)
andpostgresData.bytes
methods for going to / from[UInt8]
(#38)Foundation.Data
now conforms toPostgresDataConvertible
(#38)PostgresData(jsonb:)
andpostgresData.jsonb()
methods for going to / from JSON (#36)- New
PostgresJSONBCodable
protocol for allowing codable types to automatically serialize as JSONB (#36)
PostgresNIO 1.0.0 Alpha 1.2
PostgresNIO 1.0.0 Alpha 1.1
New:
- Conforms
UUID
toPostgresDataConvertible
- Conforms
Optional
toPostgresDataConvertible
- Conforms
PostgresData
toCustomDebugStringConvertible
PostgresNIO 1.0.0 Alpha 1
More information on Vapor 4 alpha releases:
https://medium.com/@codevapor/vapor-4-alpha-1-releases-begin-94a4bc79dd9a
API Docs:
https://api.vapor.codes/postgres-nio/master/PostgresNIO/index.html