public function processTable(\TestDbAcle\Psv\Table\Table $table) { if (!$table->getMeta()->isReplaceMode() && !$table->getMeta()->isAppendMode()) { $this->pdoFacade->clearTable($table->getName()); } foreach ($table->toArray() as $valuesToBeInserted) { $this->insertValues($this->upsertBuilderFactory->getUpserter($table, $valuesToBeInserted), $valuesToBeInserted); } }