Swiftpack.co - Package - vapor/database-kit

Github

link
Stars: 38

Dependencies

Used By

Total: 0

Releases

DatabaseKit 1.3.3 - 2019-02-07 22:57:42

Fixed:

  • KeyedCache.get(_:) is no longer internal. (#50, #57)

DatabaseKit 1.3.2 - 2019-01-17 18:24:25

Fixed:

  • Fixed an error that could cause connection pool to be exhausted when creating new connections failed. (#51)

DatabaseKit 1.3.1 - 2018-08-27 19:31:03

Fixed:

  • DatabaseConnectionPoolConfig now defaults to a max of 10 connections per pool. (#47, #45, #48)

Previously, the max connections per pool would default to System.coreCount. This could create hanging request issues on some Linux deploys where the core count was 1.

If a max of 10 is too high, you can still of course configure this to any value you want using the following snippet during service configuration.

services.register { container in
    return DatabaseConnectionPoolConfig(maxConnections: 5)
}

DatabaseKit 1.3.0 - 2018-07-25 19:20:46

New:

  • Adds a new connectionPool parameter when requesting a cached connection from a container. (#43, #44).

DatabaseKit 1.2.0 - 2018-06-19 22:30:32

New:

DatabaseKit 1.1.0 - 2018-06-15 03:14:32

New:

  • DatabaseConnection now has an associated database type (#38).

Database Kit 1.0.1 - 2018-04-30 17:56:14

Fixed:

  • Added deprecations for requestConnection(...) and releaseConnection(...) extensions on Container.

Milestone: 1.0.1

Database Kit 1.0.0 - 2018-04-25 22:59:31

Introducing Database Kit 1.0 🎉 🗄 Core services for creating database integrations.

Docs: https://docs.vapor.codes/3.0/database-kit/getting-started/

API Docs: https://api.vapor.codes/database-kit/latest/DatabaseKit


Changes since last RC:

New:

  • ConfiguredDatabase type for more consistent connection configuration.
  • DatabaseKeyedCache type replaces Fluent keyed cache.

Fixed:

  • DatabaseConfig renamed to DatabasesConfig to make it clear that it is for configuring multiple dbs.
  • withConnection(...) renamed to withNewConnection(...) to better distinguish it from the pooled methods.

Milestone: 1.0.0

DatabaseKit 1.0.0 RC 2.2.1 - 2018-03-29 04:17:40

Database Kit 1.0.0 RC 2.1.1 - 2018-03-26 00:50:29

Fixed:

  • Fixed an issue where IN/NOT-IN predicates with 0 or 1 values would serialize incorrectly.

Milestone: 1.0.0-rc.2.1.1

Database Kit 1.0.0 RC 2.1 - 2018-03-22 18:58:50

New:

  • Conform DatabaseConnection to Extendable. Free, temporary implementation is supplied so that this is not a breaking change.

Milestone

Database Kit 1.0.0 RC 2 - 2018-03-21 20:34:06

New:

  • Vapor is now running on Swift NIO!
  • Cleaned up SQL code, adding convenience methods and doc blocks.
  • Added GROUP BY

Fixed:

  • SQLSerializer now longer creates foreign keys twice
  • Publicized DatabaseConnectionPoolConfig

Milestone

Database Kit 1.0.0 RC 1 - 2018-02-23 04:48:53

Database Kit 1.0.0 Beta 5 - 2018-02-22 08:12:10

New:

  • Core / Service package updates.

Database Kit 1.0.0 Beta 4 - 2018-02-19 17:56:45

Fixed:

  • Fix some naming of add/remove/delete to be consistent.

DatabaseKit 1.0.0 Beta 3 - 2018-02-16 01:26:34

New:

  • adds a DatabaseConnectionPoolConfig for configuring connection pool size
let poolConfig = DatabaseConnectionPoolConfig(maxConnections: 20)
services.register(poolConfig)

Fixed:

  • removes ConnectionConfig type, this can/should be configured via database alone
  • fixes bugs related to reference cycles on connection pool cache

Milestone

Database Kit 1.0.0 Beta 2.2 - 2018-02-15 23:49:08

Fixed:

  • Fixes an issue where cached connections could be created on a non-sub container.

Milestone

DatabaseKit 1.0.0 Beta 2.1 - 2018-02-15 01:03:04

DatabaseKit 1.0.0 Beta 2 - 2018-02-14 00:41:54

New:

  • Added referential actions for foreign keys.

Fixed:

  • Fixed an incorrect assert

Milestone

Database Kit 1.0.0 Beta 1 - 2018-02-10 00:58:16