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: 75

Used By

Total: 0

Releases

Alter table syntax - 2020-02-21 00:08:34

Implement Postgres alter table syntax in SQLDialect.

Support encoding non-JSON arrays - 2020-02-20 06:21:26

Adds support for encoding arrays that contain values besides nested structs (JSON and JSONB).

Added create/drop trigger dialect conditions - 2020-02-13 21:13:26

Updates the package to specify syntax that PostgreSQL supports for triggers.

Add support for configuring connections via UNIX domain socket - 2020-02-12 23:33:38

Add support for configuring connections via UNIX domain socket (#170).

PostgresConfiguration(
    unixDomainSocketPath: "/tmp/.s.PGSQL.5432",
    username: "postgres",
    password: "postgres",
    database: "postgres"
)

Support JSON or JSONB for decoding structs - 2020-01-22 22:01:42

Adds support for both JSON and JSONB data types when decoding nested structs. Error messages in PostgresDataDecoder have also been improved.

Enum Support - 2020-01-22 03:00:08

https://github.com/vapor/sql-kit/pull/85

Improved PostgresConfiguration(url:) support - 2020-01-15 22:35:39

  • Adds support for URLs with scheme postgres:// and postgresql://
  • Adds support for sslmode=require query string
  • TLS certificate verification is now enabled by default

PostgresKit 2.0.0 Beta 3.1 - 2019-12-13 23:52:16

  • Fix a bug decoding nil values (#162)

PostgresKit 2.0.0 Beta 3 - 2019-12-13 22:05:57

Refactors PostgresDataEncoder to be more flexible. There are now three distinct paths for encoding:

  • Single value: Cast to PostgresDataConvertible, if fail, unwrap and try again
  • Unkeyed value: Convert to JSONB[]
  • Keyed value: Convert to JSONB

Refactors PostgresDataDecoder to operate similarly.

Also updates PostgresRow's SQLRow conformance to latest changes.

PostgresKit 2.0.0 Beta 2.2 - 2019-12-11 17:25:23

  • Support custom JSON coders in PostgresDataEncoder and PostgresDataDecoder (#159)

PostgresKit 2.0.0 Beta 2.1 - 2019-12-11 00:38:41

  • PostgresDataEncoder/Decoder now support arrays (#160)

PostgresKit 2.0.0 Beta 2 - 2019-12-09 19:16:43

  • Added support for custom Logger passing. (#156)

  • Fixed a bug encoding JSONB data.

  • Added a test for leaking promises (#155)

  • Enabled test discovery on Linux. (#158)

PostgresKit 2.0.0 Beta 1 - 2019-10-24 23:26:06

Update to AsyncKit 1.0.0 Beta 1.

PostgreSQL 1.5.0 - 2019-10-14 23:34:37

  • Fixed PostgresError.stackTrace conformance to Debuggable. (#146, #147)

⚠️ This is technically a breaking change if you use PostgresError.stackTrace directly. However, this is normally accessed via Debuggable conformance so most users should not be affected.

PostgresKit 2.0.0 Alpha 2.1 - 2019-09-23 21:55:30

  • Connections from PostgresConnectionSource are now closed properly if authentication fails. (#144)

PostgreSQL 1.4.2 - 2019-09-08 09:07:01

Fixed:

  • Decoding an array with a NULL value in it no longer crashes (#141 - #142).

PostgresKit 2.0.0 Alpha 2 - 2019-08-02 18:38:31

  • Implemented missing methods in PostgresDataDecoder and PostgresDataEncoder.

PostgresKit 2.0.0 Alpha 1 - 2019-06-06 20:20:59

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

PostgreSQL 1.4.1 - 2019-03-14 18:19:43

Fixed:

  • Improved row decoding performance. (#134)

PostgreSQL 1.4.0 - 2019-03-01 02:46:45

New:

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

PostgreSQL 1.3.0 - 2019-02-26 19:54:58

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)

PostgreSQL 1.2.2 - 2019-02-19 15:58:22

Fixed:

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

PostgreSQL 1.2.1 - 2019-02-12 20:52:06

Fixed:

  • Added swift-nio-ssl as an explicit dependency. (#121)

PostgreSQL 1.2.0 - 2019-01-30 20:01:56

New:

  • Adds three new binary operators for working with arrays. (#119)
PostgreSQLBinaryOperator.contains //  "@>"
PostgreSQLBinaryOperator.isContainedBy // "<@"
PostgreSQLBinaryOperator.overlap // "&&"

PostgreSQL 1.1.2 - 2018-11-06 16:02:35

Fixed:

  • Fixed a bug where zeroes could be missing from decoded numeric values. (#111)

PostgreSQL 1.1.1 - 2018-11-05 20:23:50

Fixed:

  • NUMERIC zero value is now decoded correctly. (#112, #109)

PostgreSQL 1.1.0 - 2018-11-05 20:23:11

PostgreSQL 1.0.2 - 2018-09-17 10:50:53

Fixed:

  • Adds support for decoding integers from numeric data. (#102)

PostgreSQL 1.0.1 - 2018-07-26 17:03:37

  • Fixes OID decoding as UInt32 where Int32 didn’t have sufficient space for some values

PostgreSQL 1.0.0 - 2018-07-26 00:14:16

PostgreSQL 1.0 is here 🎉 🐘 Non-blocking, event-driven Swift client for PostgreSQL.

Docs: docs.vapor.codes/3.0/postgresql/getting-started API Docs: api.vapor.codes/postgresql/latest/PostgreSQL


Changes since last RC:

Fixed:

  • Updated doc blocks and made some unnecessary APIs internal (#94).