Swiftpack.co - Package - vapor/postgres-kit

PostgresKit

Documentation Team Chat MIT License Continuous Integration Swift 5


See vapor-community/postgresql for libpq based version.

Github

link
Stars: 56
Help us keep the lights on

Used By

Total:

Releases

2.0.0-alpha.1 - Jun 6, 2019

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-kit/master/PostgresKit/index.html

1.4.1 - Mar 14, 2019

Fixed:

  • Improved row decoding performance. (#134)

1.4.0 - Mar 1, 2019

New:

  • Added a new PostgreSQLPolygon type for interacting with POLYGON columns. (#129)

1.3.0 - Feb 26, 2019

Fixed:

  • PostgreSQLPoint now encodes and decodes endianness correctly. (#125, #126)

⚠️ If you were using PostgreSQLPoint prior to this patch, your database may be storing point columns with flipped endianness. After this patch, points will be fetched and saved using the correct format, meaning old values may now be flipped. Use the following helper method to flip PostgreSQLPoint endianness.

let x = PostgreSQLPoint(x: 3.14, y: -42).endiannessflipped()
print(x)

1.2.2 - Feb 19, 2019

Fixed:

  • Fixed keyed PostgreSQLData encoding for empty containers. (#123)
  • Fixed a reference cycle in PostgreSQLConnection. (#116)