dumpProgress example

$preSql = <<<'EOT' SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; SET FOREIGN_KEY_CHECKS = 0; '; EOT;
        $conn->query($preSql);

        /** @var DumpIterator $dump */
        $dump = $this->getContainer()->offsetGet('database.dump_iterator');
        $this->dumpProgress($conn$dump);
    }

    private function importSnippets()
    {
        $this->IOHelper->writeln('<info>=== Import Snippets ===</info>');

        /** @var PDO $conn */
        $conn = $this->getContainer()->offsetGet('db');

        $preSql = ' SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; SET FOREIGN_KEY_CHECKS = 0; SET @locale_de_DE = (SELECT id FROM s_core_locales WHERE locale = "de_DE"); SET @locale_en_GB = (SELECT id FROM s_core_locales WHERE locale = "en_GB"); ';
Home | Imprint | This part of the site doesn't use cookies.