Ifsnop\Mysqldump\Mysqldump::createStandInTable PHP Méthode

createStandInTable() public méthode

Write a create table statement for the table Stand-In, show create table would return a create algorithm when used on a view
public createStandInTable ( string $viewName ) : string
$viewName string Name of view to export
Résultat string create statement
    function createStandInTable($viewName)
    {
        $ret = array();
        foreach ($this->tableColumnTypes[$viewName] as $k => $v) {
            $ret[] = "`{$k}` {$v['type_sql']}";
        }
        $ret = implode(PHP_EOL . ",", $ret);
        $ret = "CREATE TABLE IF NOT EXISTS `{$viewName}` (" . PHP_EOL . $ret . PHP_EOL . ");" . PHP_EOL;
        return $ret;
    }