3 final class LiskRawMigrationIterator
extends PhutilBufferedIterator
{
8 private $column = 'id';
10 public function __construct(AphrontDatabaseConnection
$conn, $table) {
12 $this->table
= $table;
15 protected function didRewind() {
19 public function key() {
20 return idx($this->current(), $this->column
);
23 protected function loadPage() {
26 'SELECT * FROM %T WHERE %C > %d ORDER BY ID ASC LIMIT %d',
30 $this->getPageSize());
33 $this->cursor
= idx(last($page), $this->column
);