承接 mkubenka/yii2-db-reconnect 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

mkubenka/yii2-db-reconnect

最新稳定版本:1.1.1

Composer 安装命令:

composer require mkubenka/yii2-db-reconnect

包简介

Yii2 DB Auto Reconnect

README 文档

README

Latest Stable Version

Inspired by:

https://github.com/xjflyttp/yii2-db-reconnect

Installation

composer require mkubenka/yii2-db-reconnect

or

"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.

统计信息

  • 总下载量: 21.16k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 7
  • 点击次数: 1
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 7
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-04-02