protected function MigrateSourceSQL::getNextBatch in Migrate 7.2
Downloads the next set of data from the source database.
1 call to MigrateSourceSQL::getNextBatch()
- MigrateSourceSQL::getNextRow in plugins/
sources/ sql.inc - Implementation of MigrateSource::getNextRow().
File
- plugins/
sources/ sql.inc, line 458 - Define a MigrateSource for importing from Drupal connections.
Class
- MigrateSourceSQL
- Implementation of MigrateSource, to handle imports from Drupal connections.
Code
protected function getNextBatch() {
$this->batch++;
$query = clone $this->alteredQuery;
$query
->range($this->batch * $this->batchSize, $this->batchSize);
$this->result = $query
->execute();
}