Releases: vapor/postgres-nio
Releases · vapor/postgres-nio
PostgresNIO 1.0.0 Beta 2.3
Publicize useful PostgresRow properties (#70)
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.bytesmethods for going to / from[UInt8](#38)Foundation.Datanow conforms toPostgresDataConvertible(#38)PostgresData(jsonb:)andpostgresData.jsonb()methods for going to / from JSON (#36)- New
PostgresJSONBCodableprotocol 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
UUIDtoPostgresDataConvertible - Conforms
OptionaltoPostgresDataConvertible - Conforms
PostgresDatatoCustomDebugStringConvertible