Skip to content

Releases: vapor/postgres-nio

PostgresNIO 1.0.0 Beta 2.2

12 Dec 04:07
128eeb9
Compare
Choose a tag to compare
Pre-release
  • 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()
  • Adds PostgresData(array:elementType:) and PostgresData.array methods for untyped arrays (#67)

  • UInt8 can now decode from CHAR / BPCHAR (#41)

  • Added a ByteToMessageDecoderVerifier test (#68)

PostgresNIO 1.0.0 Beta 2.1

11 Dec 00:19
37694b6
Compare
Choose a tag to compare
Pre-release
  • Fixes PostgresData(double:) byte serialization (#65)

PostgresNIO 1.0.0 Beta 2

09 Dec 19:00
4dbce11
Compare
Choose a tag to compare
Pre-release
  • Added support for custom Logger passing. (#58)

  • query(...) now sends bind types allowing for Postgres to cast binds automatically. (#63)

  • Renamed PostgresClient to PostgresDatabase (#58)

  • Fixed a leaking promise (#57)

  • Enabled test discovery on Linux (#64)

PostgresNIO 1.0.0 Alpha 1.6

18 Oct 19:39
1fc1c20
Compare
Choose a tag to compare
Pre-release
  • A warning will now be printed to the logger if supplied binds do not match what the query is expecting. (#54, #52)

PostgresNIO 1.0.0 Alpha 1.5

15 Oct 00:29
Compare
Choose a tag to compare
Pre-release
  • PostgresData now conforms to PostgresDataConvertible. (#51, #43)

PostgresNIO 1.0.0 Alpha 1.4

12 Aug 20:32
13ae955
Compare
Choose a tag to compare
Pre-release

New:

  • Improved PostgresData.description (also improves PostgresRow.description) (#49)

Fixed:

  • Fixed numerous uses of ByteBuffer "unsafe" APIs (#44, #45, #46, #47, #48)

PostgresNIO 1.0.0 Alpha 1.3

25 Jun 22:01
020658a
Compare
Choose a tag to compare
Pre-release

New:

  • PostgresData(bytes:) and postgresData.bytes methods for going to / from [UInt8] (#38)
  • Foundation.Data now conforms to PostgresDataConvertible (#38)
  • PostgresData(jsonb:) and postgresData.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

12 Jun 03:51
4c008b8
Compare
Choose a tag to compare
Pre-release

New:

  • Added Bool support to PostgresData. (#32, #33)

PostgresNIO 1.0.0 Alpha 1.1

07 Jun 19:36
7a6536f
Compare
Choose a tag to compare
Pre-release

New:

  • Conforms UUID to PostgresDataConvertible
  • Conforms Optional to PostgresDataConvertible
  • Conforms PostgresData to CustomDebugStringConvertible

PostgresNIO 1.0.0 Alpha 1

06 Jun 20:04
Compare
Choose a tag to compare