public function prepareListValues($tableName)
    {
        if (!$this->dumpSettings['skip-comments']) {
            $this->compressManager->write(
                "--".PHP_EOL.
                "-- Dumping data for table `$tableName`".PHP_EOL.
                "--".PHP_EOL.PHP_EOL
            );
        }

        if ($this->dumpSettings['single-transaction']) {
            $this->dbHandler->exec($this->typeAdapter->setup_transaction());
            $this->dbHandler->exec($this->typeAdapter->start_transaction());
        }

        if ($this->dumpSettings['lock-tables']) {
            $this->typeAdapter->lock_table($tableName);
        }

        if ($this->dumpSettings['add-locks']) {
            $this->compressManager->write(
                $this->typeAdapter->start_add_lock_table($tableName)
            );
        }

        if ($this->dumpSettings['disable-keys']) {
            $this->compressManager->write(
                $this->typeAdapter->start_add_disable_keys($tableName)
            );
        }

        // Disable autocommit for faster reload
        if ($this->dumpSettings['no-autocommit']) {
            $this->compressManager->write(
                $this->typeAdapter->start_disable_autocommit()
            );
        }

        return;
    }
public function prepareListValues($tableName)
    {
        if (!$this->dumpSettings['skip-comments']) {
            $this->compressManager->write(
                "--".PHP_EOL.
                "-- Dumping data for table `$tableName`".PHP_EOL.
                "--".PHP_EOL.PHP_EOL
            );
        }

        if ($this->dumpSettings['single-transaction']) {
            $this->dbHandler->exec($this->typeAdapter->setup_transaction());
            $this->dbHandler->exec($this->typeAdapter->start_transaction());
        }

        if ($this->dumpSettings['lock-tables']) {
            $this->typeAdapter->lock_table($tableName);
        }

        if ($this->dumpSettings['add-locks']) {
            $this->compressManager->write(
                $this->typeAdapter->start_add_lock_table($tableName)
            );
        }

        if ($this->dumpSettings['disable-keys']) {
            $this->compressManager->write(
                $this->typeAdapter->start_add_disable_keys($tableName)
            );
        }

        // Disable autocommit for faster reload
        if ($this->dumpSettings['no-autocommit']) {
            $this->compressManager->write(
                $this->typeAdapter->start_disable_autocommit()
            );
        }

        return;
    }
public function prepareListValues ( $ tableName ) { if ( ! $ this -> dumpSettings [ 'skip-comments' ] ) { $ this -> compressManager -> write ( "--" . PHP_EOL . "-- Dumping data for table `$tableName`" . PHP_EOL . "--" . PHP_EOL . PHP_EOL ) ; } if ( $ this -> dumpSettings [ 'single-transaction' ] ) { $ this -> dbHandler -> exec ( $ this -> typeAdapter -> setup_transaction ( ) ) ; $ this -> dbHandler -> exec ( $ this -> typeAdapter -> start_transaction ( ) ) ; } if ( $ this -> dumpSettings [ 'lock-tables' ] ) { $ this -> typeAdapter -> lock_table ( $ tableName ) ; } if ( $ this -> dumpSettings [ 'add-locks' ] ) { $ this -> compressManager -> write ( $ this -> typeAdapter -> start_add_lock_table ( $ tableName ) ) ; } if ( $ this -> dumpSettings [ 'disable-keys' ] ) { $ this -> compressManager -> write ( $ this -> typeAdapter -> start_add_disable_keys ( $ tableName ) ) ; } // Disable autocommit for faster reload if ( $ this -> dumpSettings [ 'no-autocommit' ] ) { $ this -> compressManager -> write ( $ this -> typeAdapter -> start_disable_autocommit ( ) ) ; } return ; }
Table rows extractor, append information prior to dump

@param string $tableName  Name of table to export

@return null
Table rows extractor append information prior to dump