2017 © Pedro Peláez
 

library stefano-db

Db Modul extend Zend Framework 2

image

stefano/stefano-db

Db Modul extend Zend Framework 2

  • Wednesday, February 28, 2018
  • by Stefano123
  • Repository
  • 1 Watchers
  • 1 Stars
  • 4,463 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 19 Versions
  • 12 % Grown

The README.md

[DEPRECATED] Stefano Db

Zend DB from v.2.4.0 support nested transactions. Please use Zend Db instead of this library. This library is NOT MAINTAINED anymore., (*1)

Build Status Code Coverege, (*2)

Installation using Composer

  1. Run command composer require stefano/stefano-db

Features

  • extend Zend Framework 2 Database adapter. For more info see Zend Db
  • nested transaction. For more info see Stefano nested transaction
  • execute defined queries after db connection will be created

Db Adapter Configuration

//$option for more info see Zend Framework 2 Db documentation
$adapter = new \StefanoDb\Adapter\Adapter($options);

Nested transaction API

$adapter->begin();
$adapter->commit();
$adapter->rollback();

Usage with Zend Framework 2 MVC

  • single DB connection configuration
return array(
    //single DB connection
    'db' => array(
        'driver' => '',
        'database' => '',
        'username' => '',
        'password' => '',
        'sqls' => array(
            "SET time_zone='+0:00'",
            "....."
        ),
    ),
    'service_manager' => array(
        'factories' => array(
            'Zend\Db\Adapter\Adapter'
                => '\StefanoDb\Adapter\Service\AdapterServiceFactory',
        ),
    ),
);
  • multiple DB connection configuration
return array(
    'db' => array(
        'adapters' => array(
            'Db/Write' => array(
                'driver' => '',
                'database' => '',
                'username' => '',
                'password' => '',
                'sqls' => array(
                    "SET time_zone='+0:00'",
                    "....."
                ),
            ),
            'Db/Read' => array(
                'driver' => '',
                'database' => '',
                'username' => '',
                'password' => '',
                'sqls' => array(
                    "SET time_zone='+0:00'",
                    "....."
                ),
            ),
        ),
    ),
    'service_manager' => array(
        'abstract_factories' => array(
            '\StefanoDb\Adapter\Service\AdapterAbstractServiceFactory',
        ),
    ),
);

The Versions

28/02 2018
31/03 2017
26/10 2015

dev-develop

dev-develop https://github.com/bartko-s/stefano-db

Db Modul extend Zend Framework 2

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Štefan Bartko

nested db transaction

26/10 2015
25/07 2014

1.4.0

1.4.0.0 https://github.com/bartko-s/stefano-db

Db Modul extend Zend Framework 2

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Štefan Bartko

nested db transaction

05/06 2014

1.3.3

1.3.3.0 https://github.com/bartko-s/stefano-db

Db Modul extend Zend Framework 2

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Štefan Bartko

nested db transaction

05/04 2014

1.3.2

1.3.2.0 https://github.com/bartko-s/stefano-db

Db Modul extend Zend Framework 2

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Štefan Bartko

nested db transaction

13/03 2014

1.3.1

1.3.1.0 https://github.com/bartko-s/stefano-db

Db Modul extend Zend Framework 2

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Štefan Bartko

nested db transaction

24/01 2014

1.3.0

1.3.0.0 https://github.com/bartko-s/stefano-db

Db Modul extend Zend Framework 2

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Štefan Bartko

nested db transaction

23/01 2014
21/01 2014

1.2.2

1.2.2.0 https://github.com/bartko-s/stefano-db

Db Modul extend Zend Framework 2

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Štefan Bartko

db transaction lock-table

16/08 2013

1.2.1

1.2.1.0 https://github.com/bartko-s/stefano-db

Db Modul extend Zend Framework 2

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Štefan Bartko

db transaction lock-table

30/07 2013

1.2.0

1.2.0.0 https://github.com/bartko-s/stefano-db

Db Modul extend Zend Framework 2

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Štefan Bartko

db transaction lock-table

30/07 2013

1.1.1

1.1.1.0 https://github.com/bartko-s/stefano-db

Db Modul extend Zend Framework 2

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Štefan Bartko

db transaction lock-table

30/07 2013

1.1.0

1.1.0.0 https://github.com/bartko-s/stefano-db

Db Modul extend Zend Framework 2

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Štefan Bartko

db transaction lock-table

04/06 2013

1.0.3

1.0.3.0 https://github.com/bartko-s/stefano-db

Modul for Zend Framework 2

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Štefan Bartko

db transaction lock-table zf-module

31/05 2013

1.0.1

1.0.1.0 https://github.com/bartko-s/stefano-db

Modul for Zend Framework 2

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Štefan Bartko

db transaction lock-table zf-module

27/05 2013

1.0.0

1.0.0.0 https://github.com/bartko-s/stefano-db

Modul for Zend Framework 2

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Štefan Bartko

db transaction lock-table zf-module