2017 © Pedro Peláez
 

yii2-extension yii2-db-console

The yii2 extension help to work in console with databases

image

dizews/yii2-db-console

The yii2 extension help to work in console with databases

  • Tuesday, May 24, 2016
  • by dizews
  • Repository
  • 0 Watchers
  • 2 Stars
  • 5,692 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 2 Versions
  • 6 % Grown

The README.md

db-console on Yii2

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

Total Downloads Code Climate, (*2)

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., (*3)

Either run, (*4)

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

or add, (*5)

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

to the require section of your composer.json., (*6)

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), (*7)

Usually if you want to connect to a mysql server in terminal you need to write:, (*8)

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

with this extension you just need:, (*9)

php yii db-console

Run mongodb client, (*10)

php yii db-console --name=mongodb

The Versions

24/05 2016

dev-master

9999999-dev

The yii2 extension help to work in console with databases

  Sources   Download

BSD-3-Clause

The Requires

 

by Vladimir Zbrailov

mongodb database postgres yii2 console mysql db sqlite

17/03 2016

1.0

1.0.0.0

The yii2 extension help to work in console with databases

  Sources   Download

BSD-3-Clause

The Requires

 

by Vladimir Zbrailov

mongodb database postgres yii2 console mysql db sqlite