Skip to content

Releases: vapor/postgres-kit

Fix passing the logger through on `PostgresConnectionSource`

18 Aug 21:00
6f35f30
Compare
Choose a tag to compare
This patch was authored by @joshuawright11 and released by @0xTim.

Pass the correct logger through to PostgresConnectionSource to bring it in line with MySQLKit.

Fix `TLSConfiguration.forClient()` deprecation

18 Aug 08:14
e83cabd
Compare
Choose a tag to compare
This patch was authored by @axtonpitt and released by @0xTim.

Fixes:

warning: 'forClient(cipherSuites:minimumTLSVersion:maximumTLSVersion:certificateVerification:trustRoots:certificateChain:privateKey:applicationProtocols:shutdownTimeout:keyLogCallback:)' is deprecated: renamed to 'makeClientConfiguration()'

Add static `ianaPortNumber` property to `PostgresConfiguration`

03 Nov 07:08
13f6c73
Compare
Choose a tag to compare
This patch was authored and released by @gwynne.

Allows referencing the default PostgreSQL TCP port number (as assigned by the IANA) without hardcoding the number 5432 all over the place.

Use correct minimal dependency of PostgresNIO

30 Oct 13:57
bb1493e
Compare
Choose a tag to compare
This patch was authored by @siemensikkema and released by @0xTim.

PostgresKit relies on APIs introduced in PostgresNIO 1.4.0 and Package.swift now reflects that (#200, fixes #199).

Use PostgresNIO's default JSON coders

09 Sep 21:17
cbbe3ef
Compare
Choose a tag to compare
This patch was authored by @jordanebelanger and released by @tanner0101.

This adds support for using non-Foundation JSON coders when decoding and encoding JSON columns (#195).

For example, if you want to use the pure-swift JSON coders, you can now do this during the configuration of your application:

import PureSwiftJSON

PostgresNIO._defaultJSONDecoder = PSJSONDecoder()
PostgresNIO._defaultJSONEncoder = PSJSONEncoder()

Do note that the JSON coders used here MUST be thread safe internally.

Fix PostgresColumnType.interval typo

28 Aug 18:23
806a513
Compare
Choose a tag to compare
This patch was authored by @code28 and released by @tanner0101.

Fixes typo in PostgresColumnType.interval's string serialization (#194, fixes #193).

Enable RETURNING use in SQLKit

24 Jun 23:04
fca27ff
Compare
Choose a tag to compare
This patch was authored by @grahamburgsma and released by @tanner0101.

Support for the RETURNING clause was added in SQLKit 3.5.0 (#189).

This enables that functionality for Postgres by setting the SQLDialect feature flag.

Fix force unwrap in PostgresDataDecoder

01 May 19:30
e43a32b
Compare
Choose a tag to compare
This patch was authored by @SusanDoggie and released by @tanner0101.

Replaces a force unwrap with a DecodingError in PostgresDataDecoder (#184).

PostgresKit 2.0.0

29 Apr 13:54
152f69b
Compare
Choose a tag to compare

Use default port for URLs

23 Apr 15:23
b465e9e
Compare
Choose a tag to compare
Pre-release
This patch was authored by @vknabel and released by @tanner0101.

Adds support for database urls not containing an explicit port: postgres://user:password@localhost/database (#183).