22 private $selectGeneratorFactory;
27 private $resourceConnection;
32 private $dumpAccessor;
37 private $selectFactory;
52 $this->selectGeneratorFactory = $selectGeneratorFactory;
54 $this->dumpAccessor = $dumpAccessor;
55 $this->selectFactory = $selectFactory;
66 $adapter = $this->resourceConnection->getConnection(
$table->getResource());
79 $connectionName =
$table->getResource();
81 $selectGenerator = $this->selectGeneratorFactory->create();
82 $resourceSignature = $this->generateDumpFileSignature(
$table);
84 foreach ($selectGenerator->generator(
$select, $connectionName) as
$data) {
85 $this->dumpAccessor->save($resourceSignature,
$data);
101 foreach (
$table->getColumns() as $column) {
117 $adapter = $this->resourceConnection->getConnection(
$table->getResource());
125 private function generateDumpFileSignature(
Table $table)
136 $file = $this->generateDumpFileSignature(
$table);
137 $generator = $this->dumpAccessor->read($file);
145 $this->dumpAccessor->destruct($file);
__construct(ResourceConnection $resourceConnection, SelectGeneratorFactory $selectGeneratorFactory, DumpAccessorInterface $dumpAccessor, SelectFactory $selectFactory)
restore(ElementInterface $table)
dump(ElementInterface $table)
isAcceptable(ElementInterface $element)