Ifsnop\Mysqldump\Mysqldump::endListValues PHP Method

endListValues() public method

Table rows extractor, close locks and commits after dump
public endListValues ( string $tableName ) : null
$tableName string Name of table to export
return null
    function endListValues($tableName)
    {
        if ($this->dumpSettings['disable-keys']) {
            $this->compressManager->write($this->typeAdapter->end_add_disable_keys($tableName));
        }
        if ($this->dumpSettings['add-locks']) {
            $this->compressManager->write($this->typeAdapter->end_add_lock_table($tableName));
        }
        if ($this->dumpSettings['single-transaction']) {
            $this->dbHandler->exec($this->typeAdapter->commit_transaction());
        }
        if ($this->dumpSettings['lock-tables']) {
            $this->typeAdapter->unlock_table($tableName);
        }
        // Commit to enable autocommit
        if ($this->dumpSettings['no-autocommit']) {
            $this->compressManager->write($this->typeAdapter->end_disable_autocommit());
        }
        $this->compressManager->write(PHP_EOL);
        return;
    }