2017 © Pedro Peláez
 

yii2-extension yii2-db-reconnect

Yii2 DB Auto Reconnect

image

mkubenka/yii2-db-reconnect

Yii2 DB Auto Reconnect

  • Thursday, September 28, 2017
  • by mkubenka
  • Repository
  • 1 Watchers
  • 3 Stars
  • 2,101 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 4 Versions
  • 27 % Grown

The README.md

Yii2 DB Auto Reconnect Build Status

Latest Stable Version, (*1)

Inspired by:, (*2)

https://github.com/xjflyttp/yii2-db-reconnect, (*3)

Installation

composer require mkubenka/yii2-db-reconnect

or, (*4)

"require": {
    "mkubenka/yii2-db-reconnect": "~1.0"
},

Configuration

'db' => [
    'class' => 'mkubenka\dbreconnect\mysql\Connection',
    'reconnectMaxCount' => 2,
    'dsn' => 'mysql:host=127.0.0.1;dbname=test',
    'username' => 'root',
    'password' => '',
    'charset' => 'utf8',
],

Logging

'log' => [
    'targets' => [
        [
            'class' => 'yii\log\FileTarget',
            'levels' => ['error', 'info'],
            'maxLogFiles' => 20,
            'maxFileSize' => 2048,
            'categories' => [
                'mkubenka\dbreconnect\*',
            ],
            'logFile' => '@frontend/runtime/logs/dbreconnect.log',
        ],
    ],
],

Known limitations

This method only works for non transactional statements., (*5)

The Versions

28/09 2017

dev-master

9999999-dev https://github.com/mkubenka/yii2-db-reconnect

Yii2 DB Auto Reconnect

  Sources   Download

MIT

The Development Requires

yii2 mysql db

28/09 2017

1.1.0

1.1.0.0 https://github.com/mkubenka/yii2-db-reconnect

Yii2 DB Auto Reconnect

  Sources   Download

MIT

The Development Requires

yii2 mysql db

07/07 2017

1.0.1

1.0.1.0 https://github.com/mkubenka/yii2-db-reconnect

Yii2 DB Auto Reconnect

  Sources   Download

MIT

The Development Requires

yii2 mysql db

02/04 2017

1.0.0

1.0.0.0 https://github.com/mkubenka/yii2-db-reconnect

Yii2 DB Auto Reconnect

  Sources   Download

MIT

The Development Requires

yii2 mysql db