src/Command/Mysql/Schema.php
public function mysqlSchema($db, $file = 'etc/mysql.sql', $user = 'root', $pass = null, $host = null, $port = null, $opts = ['format' => 'table', 'fields' => ''])
    {
        $result = $this->taskMysqlSchema()
            ->db($db)
            ->file($file)
            ->user($user)
            ->pass($pass)
            ->host($host)
            ->port($port)
            ->hide($pass)
            ->run();

        if (!$result->wasSuccessful()) {
            $this->exitError("Failed to run command");
        }

        return true;
    }
public function mysqlSchema($db, $file = 'etc/mysql.sql', $user = 'root', $pass = null, $host = null, $port = null, $opts = ['format' => 'table', 'fields' => ''])
    {
        $result = $this->taskMysqlSchema()
            ->db($db)
            ->file($file)
            ->user($user)
            ->pass($pass)
            ->host($host)
            ->port($port)
            ->hide($pass)
            ->run();

        if (!$result->wasSuccessful()) {
            $this->exitError("Failed to run command");
        }

        return true;
    }
public function mysqlSchema ( $ db , $ file = 'etc/mysql.sql' , $ user = 'root' , $ pass = null , $ host = null , $ port = null , $ opts = [ 'format' => 'table' , 'fields' => '' ] ) { $ result = $ this -> taskMysqlSchema ( ) -> db ( $ db ) -> file ( $ file ) -> user ( $ user ) -> pass ( $ pass ) -> host ( $ host ) -> port ( $ port ) -> hide ( $ pass ) -> run ( ) ; if ( ! $ result -> wasSuccessful ( ) ) { $ this -> exitError ( "Failed to run command" ) ; } return true ; }
Dump mysql database schema

@param string $db Database name
@param string $file Destination file for a dump
@param string $user MySQL user to bind with
@param string $pass (Optional) MySQL user password
@param string $host (Optional) MySQL server host
@param string $port (Optional) MySQL server port
@option string $format Output format (table, list, csv, json, xml)
@option string $fields Limit output to given fields, comma-separated

@return PropertyList result
Dump mysql database schema