Swiftpack.co - Package - vapor/fluent-postgres-driver

Github

link
Stars: 85

Used By

Total: 0

Releases

Support connection pool timeout configuration - 2020-07-15 18:52:35

This patch was authored by @mattpolzin and released by @tanner0101.

Allows for configuration of connection pool timeouts (#161).

The connection pool timeout defines the maximum amount of time allowed for requesting a connection from the pool. This helps to prevent deadlock.

try app.databases.use(.postgres(
    configuration: ...,
    connectionPoolTimeout: .minutes(1)
), as: .psql)

The default timeout is 10 seconds.

FluentPostgresDriver 2.0.0 - 2020-06-13 05:45:35

Docs: https://docs.vapor.codes/4.0/fluent/overview/ https://docs.vapor.codes/4.0/fluent/model/ https://docs.vapor.codes/4.0/fluent/relations/ https://docs.vapor.codes/4.0/fluent/migration/ https://docs.vapor.codes/4.0/fluent/query/ https://docs.vapor.codes/4.0/fluent/schema/ https://docs.vapor.codes/4.0/fluent/advanced/

More information on Vapor 4 official release: https://forums.swift.org/t/vapor-4-official-release-begins/34802

Fix transaction rollback with top-level throw - 2020-06-13 02:51:13

Adds a catchFlatMap to rollback transaction when the transaction closure throws an error (#90, fixes #89).

Support `.dictionary(of:)` data type - 2020-06-13 00:53:47

This patch was authored and released by @tanner0101.

Updates to .dictionary(of:) data type added in FluentKit 1.0.0-rc.2.7 (#156).

FluentKit 1.0.0 GM - 2020-05-29 21:53:54

This patch was authored and released by @tanner0101.

Updates this package for compatibility with latest version of FluentKit.

PostgresKit 2.0.0 GM - 2020-04-29 14:05:05

This patch was authored and released by @tanner0101.

Updates to PostgresKit 2.0.0 official release (#148).

Fix PostgresError conformance to DatabaseError - 2020-03-24 20:04:23

This patch was authored by @madsodgaard and released by @tanner0101.

Fixes and tests PostgresError's conformance to DatabaseError. This fixes issues like when trying to catch a constraint failure, which previously would always return false (#143).

Release Candidate 1 - 2020-02-28 22:43:43

Updates to FluentKit Release Candidate 1.

Release candidates represent the final shift toward focusing on bug fixes and documentation. Breaking changes will only be accepted for critical issues. We expect a final release of this package shortly after Swift 5.2's release date.

FluentKit Beta 5 - 2020-02-25 23:00:19

Updates for https://github.com/vapor/fluent-kit/releases/tag/1.0.0-beta.5.

FluentKit Beta 4 - 2020-02-15 22:26:18

Updates to https://github.com/vapor/fluent-kit/releases/tag/1.0.0-beta.4.

Support dynamic ID keys - 2020-02-12 19:38:37

Adds support for dynamic ID keys introduced in https://github.com/vapor/fluent-kit/pull/153 (#137).

Convert Fluent's uint8 type to Postgres "char" - 2019-12-26 17:20:33

Fluent's .uint8 schema data type is now converted to Postgres' 8-bit "char" type.

FluentPostgresDriver 2.0.0 Beta 2.2 - 2019-12-13 22:13:33

  • Use JSONB instead of JSON (#131)

FluentPostgresDriver 2.0.0 Beta 2.1 - 2019-12-11 17:28:57

  • Use configured PostgresDataEncoder/Decoder added in latest PostgresKit release (#129)

FluentPostgresDriver 2.0.0 Beta 2 - 2019-12-09 19:26:55

Update to latest PostgresKit and FluentKit

FluentPostgresDriver 2.0.0 Beta 1.1 - 2019-10-25 05:13:19

  • Database.eventLoopPreference is now correctly passed to the connection pool.

FluentPostgresDriver 2.0.0 Beta 1 - 2019-10-25 00:01:17

Updated to FluentKit beta 1.

FluentPostgresDriver 2.0.0 Alpha 3 - 2019-08-14 18:44:12

FluentPostgresDriver 2.0.0 Alpha 2 - 2019-08-02 18:41:31

Updated to FluentKit alpha 2: https://github.com/vapor/fluent-kit/releases/tag/1.0.0-alpha.2

FluentPostgresDriver 2.0.0 Alpha 1.2 - 2019-06-19 18:50:37

Fixed:

  • Adds support for BYTEA (#118, #119)

FluentPostgresDriver 2.0. Alpha 1.1 - 2019-06-13 15:55:28

Fixed:

  • Converts Fluent's .bool data type to "BOOL" (#117)

FluentPostgresDriver 2.0.0 Alpha 1 - 2019-06-06 20:42:20

More information on Vapor 4 alpha releases:

https://medium.com/@codevapor/vapor-4-alpha-1-releases-begin-94a4bc79dd9a

API Docs:

https://api.vapor.codes/fluent-postgres-driver/master/FluentPostgresDriver/index.html

Fluent PostgreSQL 1.0.0 - 2018-07-26 01:52:13

Fluent PostgreSQL 1.0 is here 🎉 🖋🐘 Swift ORM (queries, models, relations, etc) built on PostgreSQL.

See the updated documentation for more information: docs.vapor.codes/3.0/fluent/getting-started/ docs.vapor.codes/3.0/postgresql/getting-started/

And of course, check out the API docs for detailed information about the public API: api.vapor.codes/fluent/latest/Fluent api.vapor.codes/postgresql/latest/PostgreSQL

Fluent PostgreSQL 1.0.0 RC 4.0.1 - 2018-07-06 19:43:26

Fluent PostgreSQL 1.0.0 RC 4.0.2 - 2018-07-06 19:43:15

Fluent PostgreSQL 1.0.0 RC 4.1 - 2018-07-06 19:42:52

New:

  • Added support for DROP COLUMN and DROP CONSTRAINT (#77).

Fluent PostgreSQL 1.0.0 RC 4 - 2018-06-19 23:22:37

New:

  • Upgrade to vapor/sql 2.0 protocols.

Fluent PostgreSQL 1.0.0 RC 3.0.1 - 2018-06-15 16:53:39

New:

  • Adds a convenience method for adding custom PostgreSQL types during migrations.
builder.field(for: \.id, type: .bigint, .notNull, .primaryKey, .generated(.byDefault))

Fluent PostgreSQL 1.0.0 RC 3 - 2018-06-15 03:53:31

New:

  • New methods for creating and altering ENUM types.
  • Big improvements to Fluent and PostgreSQL:
    • https://github.com/vapor/fluent/releases/tag/3.0.0-rc.3.
    • https://github.com/vapor/postgresql/releases/tag/1.0.0-rc.3.

Fixed:

  • Lots of bug fixes.

Fluent PostgreSQL 1.0.0 RC 2.3 - 2018-05-11 00:31:17