2017 © Pedro Peláez
 

library datasource

Provides connection managing and traits for Entities and Queries that can be reused for different datastores

image

cakephp/datasource

Provides connection managing and traits for Entities and Queries that can be reused for different datastores

  • Wednesday, June 20, 2018
  • by cakephp
  • Repository
  • 30 Watchers
  • 8 Stars
  • 70,634 Installations
  • PHP
  • 7 Dependents
  • 0 Suggesters
  • 4 Forks
  • 0 Open issues
  • 100 Versions
  • 83 % Grown

The README.md

Total Downloads License, (*1)

CakePHP Datasource Library

This library contains interfaces for implementing Repositories and Entities using any data source, a class for managing connections to datasources and traits to help you quickly implement the interfaces provided by this package., (*2)

Repositories

A repository is a class capable of interfacing with a data source using operations such as find, save and delete by using intermediate query objects for expressing commands to the data store and returning Entities as the single result unit of such system., (*3)

In the case of a Relational database, a Repository would be a Table, which can be return single or multiple Entity objects by using a Query., (*4)

This library exposes the following interfaces for creating a system that implements the repository pattern and is compatible with the CakePHP framework:, (*5)

  • RepositoryInterface - Describes the methods for a base repository class.
  • EntityInterface - Describes the methods for a single result object.
  • ResultSetInterface - Represents the idea of a collection of Entities as a result of a query.

Additionally, this package provides a few traits and classes you can use in your own implementations:, (*6)

  • EntityTrait - Contains the default implementation for the EntityInterface.
  • QueryTrait - Exposes the methods for creating a query object capable of returning decoratable collections.
  • ResultSetDecorator - Decorates any traversable object, so it complies with ResultSetInterface.

Connections

This library contains a couple of utility classes meant to create and manage connection objects. Connections are typically used in repositories for interfacing with the actual data source system., (*7)

The ConnectionManager class acts as a registry to access database connections your application has. It provides a place that other objects can get references to existing connections. Creating connections with the ConnectionManager is easy:, (*8)

use Cake\Datasource\ConnectionManager;

ConnectionManager::config('connection-one', [
    'className' => 'MyApp\Connections\CustomConnection',
    'param1' => 'value',
    'param2' => 'another value'
]);

ConnectionManager::config('connection-two', [
    'className' => 'MyApp\Connections\CustomConnection',
    'param1' => 'different value',
    'param2' => 'another value'
]);

When requested, the ConnectionManager will instantiate MyApp\Connections\CustomConnection by passing param1 and param2 inside an array as the first argument of the constructor., (*9)

Once configured connections can be fetched using ConnectionManager::get(). This method will construct and load a connection if it has not been built before, or return the existing known connection:, (*10)

use Cake\Datasource\ConnectionManager;
$conn = ConnectionManager::get('master');

It is also possible to store connection objects by passing the instance directly to the manager:, (*11)

use Cake\Datasource\ConnectionManager;
$conn = ConnectionManager::config('other', $connectionInstance);

Documentation

Please make sure you check the official API documentation, (*12)

The Versions

20/06 2018

dev-master

9999999-dev https://cakephp.org

Provides connection managing and traits for Entities and Queries that can be reused for different datastores

  Sources   Download

MIT

The Requires

 

cakephp entity query datasource connection management

20/06 2018

3.6.6

3.6.6.0 https://cakephp.org

Provides connection managing and traits for Entities and Queries that can be reused for different datastores

  Sources   Download

MIT

The Requires

 

cakephp entity query datasource connection management

20/06 2018

3.6.7

3.6.7.0 https://cakephp.org

Provides connection managing and traits for Entities and Queries that can be reused for different datastores

  Sources   Download

MIT

The Requires

 

cakephp entity query datasource connection management

20/06 2018

3.6.8

3.6.8.0 https://cakephp.org

Provides connection managing and traits for Entities and Queries that can be reused for different datastores

  Sources   Download

MIT

The Requires

 

cakephp entity query datasource connection management

20/06 2018

3.6.9

3.6.9.0 https://cakephp.org

Provides connection managing and traits for Entities and Queries that can be reused for different datastores

  Sources   Download

MIT

The Requires

 

cakephp entity query datasource connection management

07/06 2018

3.6.5

3.6.5.0 https://cakephp.org

Provides connection managing and traits for Entities and Queries that can be reused for different datastores

  Sources   Download

MIT

The Requires

 

cakephp entity query datasource connection management

30/04 2018

3.6.3

3.6.3.0 https://cakephp.org

Provides connection managing and traits for Entities and Queries that can be reused for different datastores

  Sources   Download

MIT

The Requires

 

cakephp entity query datasource connection management

30/04 2018

3.6.4

3.6.4.0 https://cakephp.org

Provides connection managing and traits for Entities and Queries that can be reused for different datastores

  Sources   Download

MIT

The Requires

 

cakephp entity query datasource connection management

19/04 2018

3.6.1

3.6.1.0 https://cakephp.org

Provides connection managing and traits for Entities and Queries that can be reused for different datastores

  Sources   Download

MIT

The Requires

 

cakephp entity query datasource connection management

19/04 2018

3.6.2

3.6.2.0 https://cakephp.org

Provides connection managing and traits for Entities and Queries that can be reused for different datastores

  Sources   Download

MIT

The Requires

 

cakephp entity query datasource connection management

04/04 2018

3.6.0

3.6.0.0 https://cakephp.org

Provides connection managing and traits for Entities and Queries that can be reused for different datastores

  Sources   Download

MIT

The Requires

 

cakephp entity query datasource connection management

24/03 2018

dev-3.next

dev-3.next https://cakephp.org

Provides connection managing and traits for Entities and Queries that can be reused for different datastores

  Sources   Download

MIT

The Requires

 

cakephp entity query datasource connection management

24/03 2018

3.6.0-RC1

3.6.0.0-RC1 https://cakephp.org

Provides connection managing and traits for Entities and Queries that can be reused for different datastores

  Sources   Download

MIT

The Requires

 

cakephp entity query datasource connection management

24/03 2018

3.6.0-RC2

3.6.0.0-RC2 https://cakephp.org

Provides connection managing and traits for Entities and Queries that can be reused for different datastores

  Sources   Download

MIT

The Requires

 

cakephp entity query datasource connection management

19/03 2018

3.5.14

3.5.14.0 https://cakephp.org

Provides connection managing and traits for Entities and Queries that can be reused for different datastores

  Sources   Download

MIT

The Requires

 

cakephp entity query datasource connection management

19/03 2018

3.5.15

3.5.15.0 https://cakephp.org

Provides connection managing and traits for Entities and Queries that can be reused for different datastores

  Sources   Download

MIT

The Requires

 

cakephp entity query datasource connection management

19/03 2018

3.5.x-dev

3.5.9999999.9999999-dev https://cakephp.org

Provides connection managing and traits for Entities and Queries that can be reused for different datastores

  Sources   Download

MIT

The Requires

 

cakephp entity query datasource connection management

19/03 2018

3.5.17

3.5.17.0 https://cakephp.org

Provides connection managing and traits for Entities and Queries that can be reused for different datastores

  Sources   Download

MIT

The Requires

 

cakephp entity query datasource connection management

14/03 2018

3.6.0-beta3

3.6.0.0-beta3 https://cakephp.org

Provides connection managing and traits for Entities and Queries that can be reused for different datastores

  Sources   Download

MIT

The Requires

 

cakephp entity query datasource connection management

28/02 2018

3.6.0-beta1

3.6.0.0-beta1 https://cakephp.org

Provides connection managing and traits for Entities and Queries that can be reused for different datastores

  Sources   Download

MIT

The Requires

 

cakephp entity query datasource connection management

28/02 2018

3.6.0-beta2

3.6.0.0-beta2 https://cakephp.org

Provides connection managing and traits for Entities and Queries that can be reused for different datastores

  Sources   Download

MIT

The Requires

 

cakephp entity query datasource connection management

25/02 2018

3.5.13

3.5.13.0 https://cakephp.org

Provides connection managing and traits for Entities and Queries that can be reused for different datastores

  Sources   Download

MIT

The Requires

 

cakephp entity query datasource connection management

08/01 2018

3.5.11

3.5.11.0 https://cakephp.org

Provides connection managing and traits for Entities and Queries that can be reused for different datastores

  Sources   Download

MIT

The Requires

 

cakephp entity query datasource connection management

08/01 2018

3.5.12

3.5.12.0 https://cakephp.org

Provides connection managing and traits for Entities and Queries that can be reused for different datastores

  Sources   Download

MIT

The Requires

 

cakephp entity query datasource connection management

20/12 2017

3.5.9

3.5.9.0 https://cakephp.org

Provides connection managing and traits for Entities and Queries that can be reused for different datastores

  Sources   Download

MIT

The Requires

 

cakephp entity query datasource connection management

20/12 2017

3.5.10

3.5.10.0 https://cakephp.org

Provides connection managing and traits for Entities and Queries that can be reused for different datastores

  Sources   Download

MIT

The Requires

 

cakephp entity query datasource connection management

21/11 2017

3.5.7

3.5.7.0 https://cakephp.org

Provides connection managing and traits for Entities and Queries that can be reused for different datastores

  Sources   Download

MIT

The Requires

 

cakephp entity query datasource connection management

21/11 2017

3.5.8

3.5.8.0 https://cakephp.org

Provides connection managing and traits for Entities and Queries that can be reused for different datastores

  Sources   Download

MIT

The Requires

 

cakephp entity query datasource connection management

07/10 2017

3.5.4

3.5.4.0 https://cakephp.org

Provides connection managing and traits for Entities and Queries that can be reused for different datastores

  Sources   Download

MIT

The Requires

 

cakephp entity query datasource connection management

07/10 2017

3.5.5

3.5.5.0 https://cakephp.org

Provides connection managing and traits for Entities and Queries that can be reused for different datastores

  Sources   Download

MIT

The Requires

 

cakephp entity query datasource connection management

07/10 2017

3.5.6

3.5.6.0 https://cakephp.org

Provides connection managing and traits for Entities and Queries that can be reused for different datastores

  Sources   Download

MIT

The Requires

 

cakephp entity query datasource connection management

26/09 2017

3.5.3

3.5.3.0 https://cakephp.org

Provides connection managing and traits for Entities and Queries that can be reused for different datastores

  Sources   Download

MIT

The Requires

 

cakephp entity query datasource connection management

22/08 2017

3.5.1

3.5.1.0 https://cakephp.org

Provides connection managing and traits for Entities and Queries that can be reused for different datastores

  Sources   Download

MIT

The Requires

 

cakephp entity query datasource connection management

22/08 2017

3.5.2

3.5.2.0 https://cakephp.org

Provides connection managing and traits for Entities and Queries that can be reused for different datastores

  Sources   Download

MIT

The Requires

 

cakephp entity query datasource connection management

19/08 2017

3.5.0

3.5.0.0 https://cakephp.org

Provides connection managing and traits for Entities and Queries that can be reused for different datastores

  Sources   Download

MIT

The Requires

 

cakephp entity query datasource connection management

12/08 2017

3.5.0-RC2

3.5.0.0-RC2 https://cakephp.org

Provides connection managing and traits for Entities and Queries that can be reused for different datastores

  Sources   Download

MIT

The Requires

 

cakephp entity query datasource connection management

09/08 2017

3.4.13

3.4.13.0 https://cakephp.org

Provides connection managing and traits for Entities and Queries that can be reused for different datastores

  Sources   Download

MIT

The Requires

 

cakephp entity query datasource connection management

09/08 2017

3.4.x-dev

3.4.9999999.9999999-dev https://cakephp.org

Provides connection managing and traits for Entities and Queries that can be reused for different datastores

  Sources   Download

MIT

The Requires

 

cakephp entity query datasource connection management

09/08 2017

3.4.14

3.4.14.0 https://cakephp.org

Provides connection managing and traits for Entities and Queries that can be reused for different datastores

  Sources   Download

MIT

The Requires

 

cakephp entity query datasource connection management

14/07 2017

3.5.0-RC1

3.5.0.0-RC1 https://cakephp.org

Provides connection managing and traits for Entities and Queries that can be reused for different datastores

  Sources   Download

MIT

The Requires

 

cakephp entity query datasource connection management

06/07 2017

3.4.10

3.4.10.0 https://cakephp.org

Provides connection managing and traits for Entities and Queries that can be reused for different datastores

  Sources   Download

MIT

The Requires

 

cakephp entity query datasource connection management

06/07 2017

3.4.11

3.4.11.0 https://cakephp.org

Provides connection managing and traits for Entities and Queries that can be reused for different datastores

  Sources   Download

MIT

The Requires

 

cakephp entity query datasource connection management

06/07 2017

3.4.12

3.4.12.0 https://cakephp.org

Provides connection managing and traits for Entities and Queries that can be reused for different datastores

  Sources   Download

MIT

The Requires

 

cakephp entity query datasource connection management

15/06 2017

3.4.8

3.4.8.0 https://cakephp.org

Provides connection managing and traits for Entities and Queries that can be reused for different datastores

  Sources   Download

MIT

The Requires

 

cakephp entity query datasource connection management

15/06 2017

3.4.9

3.4.9.0 https://cakephp.org

Provides connection managing and traits for Entities and Queries that can be reused for different datastores

  Sources   Download

MIT

The Requires

 

cakephp entity query datasource connection management

18/05 2017

3.4.7

3.4.7.0

Provides connection managing and traits for Entities and Queries that can be reused for different datastores

  Sources   Download

MIT

The Requires

 

18/04 2017

3.4.6

3.4.6.0

Provides connection managing and traits for Entities and Queries that can be reused for different datastores

  Sources   Download

MIT

The Requires

 

11/03 2017

3.4.4

3.4.4.0

Provides connection managing and traits for Entities and Queries that can be reused for different datastores

  Sources   Download

MIT

The Requires

 

11/03 2017

3.4.5

3.4.5.0

Provides connection managing and traits for Entities and Queries that can be reused for different datastores

  Sources   Download

MIT

The Requires

 

10/03 2017

3.4.3

3.4.3.0

Provides connection managing and traits for Entities and Queries that can be reused for different datastores

  Sources   Download

MIT

The Requires

 

22/02 2017

3.4.2

3.4.2.0

Provides connection managing and traits for Entities and Queries that can be reused for different datastores

  Sources   Download

MIT

The Requires

 

16/02 2017

3.4.1

3.4.1.0

Provides connection managing and traits for Entities and Queries that can be reused for different datastores

  Sources   Download

MIT

The Requires

 

10/02 2017

3.4.0

3.4.0.0

Provides connection managing and traits for Entities and Queries that can be reused for different datastores

  Sources   Download

MIT

The Requires

 

04/02 2017

3.4.0-RC4

3.4.0.0-RC4

Provides connection managing and traits for Entities and Queries that can be reused for different datastores

  Sources   Download

MIT

The Requires

 

22/01 2017

3.4.0-RC3

3.4.0.0-RC3

Provides connection managing and traits for Entities and Queries that can be reused for different datastores

  Sources   Download

MIT

The Requires

 

18/01 2017

3.4.0-RC2

3.4.0.0-RC2

Provides connection managing and traits for Entities and Queries that can be reused for different datastores

  Sources   Download

MIT

The Requires

 

17/01 2017

3.3.13

3.3.13.0

Provides connection managing and traits for Entities and Queries that can be reused for different datastores

  Sources   Download

MIT

The Requires

 

17/01 2017

3.3.14

3.3.14.0

Provides connection managing and traits for Entities and Queries that can be reused for different datastores

  Sources   Download

MIT

The Requires

 

17/01 2017

3.3.15

3.3.15.0

Provides connection managing and traits for Entities and Queries that can be reused for different datastores

  Sources   Download

MIT

The Requires

 

17/01 2017

3.3.16

3.3.16.0

Provides connection managing and traits for Entities and Queries that can be reused for different datastores

  Sources   Download

MIT

The Requires

 

12/01 2017

3.4.0-RC1

3.4.0.0-RC1

Provides connection managing and traits for Entities and Queries that can be reused for different datastores

  Sources   Download

MIT

The Requires

 

03/01 2017

3.4.0-beta4

3.4.0.0-beta4

Provides connection managing and traits for Entities and Queries that can be reused for different datastores

  Sources   Download

MIT

The Requires

 

22/12 2016

3.4.0-beta1

3.4.0.0-beta1

Provides connection managing and traits for Entities and Queries that can be reused for different datastores

  Sources   Download

MIT

The Requires

 

22/12 2016

3.4.0-beta2

3.4.0.0-beta2

Provides connection managing and traits for Entities and Queries that can be reused for different datastores

  Sources   Download

MIT

The Requires

 

22/12 2016

3.4.0-beta3

3.4.0.0-beta3

Provides connection managing and traits for Entities and Queries that can be reused for different datastores

  Sources   Download

MIT

The Requires

 

02/11 2016

3.3.10

3.3.10.0

Provides connection managing and traits for Entities and Queries that can be reused for different datastores

  Sources   Download

MIT

The Requires

 

02/11 2016

3.3.11

3.3.11.0

Provides connection managing and traits for Entities and Queries that can be reused for different datastores

  Sources   Download

MIT

The Requires

 

02/11 2016

3.3.12

3.3.12.0

Provides connection managing and traits for Entities and Queries that can be reused for different datastores

  Sources   Download

MIT

The Requires

 

02/11 2016

3.3.8

3.3.8.0

Provides connection managing and traits for Entities and Queries that can be reused for different datastores

  Sources   Download

MIT

The Requires

 

02/11 2016

3.3.9

3.3.9.0

Provides connection managing and traits for Entities and Queries that can be reused for different datastores

  Sources   Download

MIT

The Requires

 

07/09 2016

3.3.4

3.3.4.0

Provides connection managing and traits for Entities and Queries that can be reused for different datastores

  Sources   Download

MIT

The Requires

 

07/09 2016

3.3.5

3.3.5.0

Provides connection managing and traits for Entities and Queries that can be reused for different datastores

  Sources   Download

MIT

The Requires

 

07/09 2016

3.3.6

3.3.6.0

Provides connection managing and traits for Entities and Queries that can be reused for different datastores

  Sources   Download

MIT

The Requires

 

07/09 2016

3.3.7

3.3.7.0

Provides connection managing and traits for Entities and Queries that can be reused for different datastores

  Sources   Download

MIT

The Requires

 

26/08 2016

3.3.3

3.3.3.0

Provides connection managing and traits for Entities and Queries that can be reused for different datastores

  Sources   Download

MIT

The Requires

 

13/08 2016

3.3.0

3.3.0.0

Provides connection managing and traits for Entities and Queries that can be reused for different datastores

  Sources   Download

MIT

The Requires

 

13/08 2016

3.3.1

3.3.1.0

Provides connection managing and traits for Entities and Queries that can be reused for different datastores

  Sources   Download

MIT

The Requires

 

13/08 2016

3.3.2

3.3.2.0

Provides connection managing and traits for Entities and Queries that can be reused for different datastores

  Sources   Download

MIT

The Requires

 

10/08 2016

3.2.14

3.2.14.0

Provides connection managing and traits for Entities and Queries that can be reused for different datastores

  Sources   Download

MIT

The Requires

 

14/07 2016

3.3.0-beta2

3.3.0.0-beta2

Provides connection managing and traits for Entities and Queries that can be reused for different datastores

  Sources   Download

MIT

The Requires

 

14/07 2016

3.3.0-beta3

3.3.0.0-beta3

Provides connection managing and traits for Entities and Queries that can be reused for different datastores

  Sources   Download

MIT

The Requires

 

14/07 2016

3.3.0-RC1

3.3.0.0-RC1

Provides connection managing and traits for Entities and Queries that can be reused for different datastores

  Sources   Download

MIT

The Requires

 

13/07 2016

3.2.13

3.2.13.0

Provides connection managing and traits for Entities and Queries that can be reused for different datastores

  Sources   Download

MIT

The Requires

 

07/07 2016

3.3.0-beta

3.3.0.0-beta

Provides connection managing and traits for Entities and Queries that can be reused for different datastores

  Sources   Download

MIT

The Requires

 

27/06 2016

3.2.12

3.2.12.0

Provides connection managing and traits for Entities and Queries that can be reused for different datastores

  Sources   Download

MIT

The Requires

 

01/06 2016

3.2.11

3.2.11.0

Provides connection managing and traits for Entities and Queries that can be reused for different datastores

  Sources   Download

MIT

The Requires

 

14/05 2016

3.2.10

3.2.10.0

Provides connection managing and traits for Entities and Queries that can be reused for different datastores

  Sources   Download

MIT

The Requires

 

14/05 2016

3.2.9

3.2.9.0

Provides connection managing and traits for Entities and Queries that can be reused for different datastores

  Sources   Download

MIT

The Requires

 

12/04 2016

3.2.8

3.2.8.0

Provides connection managing and traits for Entities and Queries that can be reused for different datastores

  Sources   Download

MIT

The Requires

 

30/03 2016

3.2.7

3.2.7.0

Provides connection managing and traits for Entities and Queries that can be reused for different datastores

  Sources   Download

MIT

The Requires

 

23/03 2016

3.2.6

3.2.6.0

Provides connection managing and traits for Entities and Queries that can be reused for different datastores

  Sources   Download

MIT

The Requires

 

11/03 2016

3.2.5

3.2.5.0

Provides connection managing and traits for Entities and Queries that can be reused for different datastores

  Sources   Download

MIT

The Requires

 

07/03 2016

3.2.4

3.2.4.0

Provides connection managing and traits for Entities and Queries that can be reused for different datastores

  Sources   Download

MIT

The Requires

 

17/02 2016

3.2.3

3.2.3.0

Provides connection managing and traits for Entities and Queries that can be reused for different datastores

  Sources   Download

MIT

The Requires

 

10/02 2016

3.2.2

3.2.2.0

Provides connection managing and traits for Entities and Queries that can be reused for different datastores

  Sources   Download

MIT

The Requires

 

30/01 2016

3.2.0

3.2.0.0

Provides connection managing and traits for Entities and Queries that can be reused for different datastores

  Sources   Download

MIT

The Requires

 

30/01 2016

3.2.1

3.2.1.0

Provides connection managing and traits for Entities and Queries that can be reused for different datastores

  Sources   Download

MIT

The Requires

 

28/01 2016

3.1.x-dev

3.1.9999999.9999999-dev

Provides connection managing and traits for Entities and Queries that can be reused for different datastores

  Sources   Download

MIT

The Requires

 

28/01 2016

dev-3-1

dev-3-1

Provides connection managing and traits for Entities and Queries that can be reused for different datastores

  Sources   Download

MIT

The Requires

 

28/01 2016

3.1.10

3.1.10.0

Provides connection managing and traits for Entities and Queries that can be reused for different datastores

  Sources   Download

MIT

The Requires