src/Database/InOut/Mysql/Exporter.php
public static function stucture($table)
    {
        $drop = "DROP TABLE IF EXISTS `$table`;";
        $res = Driver::read('SHOW CREATE TABLE '.$table);
        $struct = $res[0]['Create Table'];
        //
        return "\n\n-- $table\n\n-- '$table' Table Structure\n$drop\n".$struct.";\n\n";
    }
public static function stucture($table)
    {
        $drop = "DROP TABLE IF EXISTS `$table`;";
        $res = Driver::read('SHOW CREATE TABLE '.$table);
        $struct = $res[0]['Create Table'];
        //
        return "\n\n-- $table\n\n-- '$table' Table Structure\n$drop\n".$struct.";\n\n";
    }
public static function stucture ( $ table ) { $ drop = "DROP TABLE IF EXISTS `$table`;" ; $ res = Driver :: read ( 'SHOW CREATE TABLE ' . $ table ) ; $ struct = $ res [ 0 ] [ 'Create Table' ] ; // return "\n\n-- $table\n\n-- '$table' Table Structure\n$drop\n" . $ struct . ";\n\n" ; }
Get SQL query of table stucture.

@param string $table name of table to export

@return string table structure
Get SQL query of table stucture .