Ifsnop\Mysqldump\TypeAdapterMysql::create_table PHP Method

create_table() public method

public create_table ( $row, $dumpSettings )
    public function create_table($row, $dumpSettings)
    {
        if (!isset($row['Create Table'])) {
            throw new Exception("Error getting table code, unknown output");
        }
        $ret = "/*!40101 SET @saved_cs_client     = @@character_set_client */;" . PHP_EOL . "/*!40101 SET character_set_client = " . $dumpSettings['default-character-set'] . " */;" . PHP_EOL . $row['Create Table'] . ";" . PHP_EOL . "/*!40101 SET character_set_client = @saved_cs_client */;" . PHP_EOL . PHP_EOL;
        return $ret;
    }