定制 dizews/yii2-db-console 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

dizews/yii2-db-console

Composer 安装命令:

composer require dizews/yii2-db-console

包简介

The yii2 extension help to work in console with databases

README 文档

README

Help you to work with different console database clients in unified format. Currently it support mysql, postgres, sqlite and mongodb drivers.

Total Downloads Code Climate

Features

  • Open console database client.
  • Load data from file.
  • Dump data into the destination.
  • Restore data from the dump.

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --dev --prefer-dist dizews/yii2-db-console "*"

or add

"dizews/yii2-db-console": "*"

to the require section of your composer.json.

General Usage

    'controllerMap' => [
        'db-console' => [
            'class' => 'dizews\dbConsole\DbController'
            //'drivers' => [
            //    'mysql' => [
            //        'class' => 'dizews\dbConsole\drivers\Mysql',
            //        'clientPath' => '/usr/local/bin/mysql'
            //    ]
            //]
        ]
    ]

Run database client (mysql)

Usually if you want to connect to a mysql server in terminal you need to write:

mysql --host=127.0.0.1 --port=3306 --user=user database --password=pwd

with this extension you just need:

php yii db-console

Run mongodb client

php yii db-console --name=mongodb

统计信息

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

GitHub 信息

  • Stars: 2
  • Watchers: 0
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2014-07-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固