@@ 452-469 (lines=18) @@ | ||
449 | private function getDatabaseStructure() |
|
450 | { |
|
451 | // Listing all tables from database |
|
452 | if (empty($this->dumpSettings['include-tables'])) { |
|
453 | // include all tables for now, blacklisting happens later |
|
454 | foreach ($this->dbHandler->query($this->typeAdapter->show_tables($this->dbName)) as $row) { |
|
455 | array_push($this->tables, current($row)); |
|
456 | } |
|
457 | } else { |
|
458 | // include only the tables mentioned in include-tables |
|
459 | foreach ($this->dbHandler->query($this->typeAdapter->show_tables($this->dbName)) as $row) { |
|
460 | if (in_array(current($row), $this->dumpSettings['include-tables'], true)) { |
|
461 | array_push($this->tables, current($row)); |
|
462 | $elem = array_search( |
|
463 | current($row), |
|
464 | $this->dumpSettings['include-tables'] |
|
465 | ); |
|
466 | unset($this->dumpSettings['include-tables'][$elem]); |
|
467 | } |
|
468 | } |
|
469 | } |
|
470 | ||
471 | // Listing all views from database |
|
472 | if (empty($this->dumpSettings['include-views'])) { |
|
@@ 472-489 (lines=18) @@ | ||
469 | } |
|
470 | ||
471 | // Listing all views from database |
|
472 | if (empty($this->dumpSettings['include-views'])) { |
|
473 | // include all views for now, blacklisting happens later |
|
474 | foreach ($this->dbHandler->query($this->typeAdapter->show_views($this->dbName)) as $row) { |
|
475 | array_push($this->views, current($row)); |
|
476 | } |
|
477 | } else { |
|
478 | // include only the tables mentioned in include-tables |
|
479 | foreach ($this->dbHandler->query($this->typeAdapter->show_views($this->dbName)) as $row) { |
|
480 | if (in_array(current($row), $this->dumpSettings['include-views'], true)) { |
|
481 | array_push($this->views, current($row)); |
|
482 | $elem = array_search( |
|
483 | current($row), |
|
484 | $this->dumpSettings['include-views'] |
|
485 | ); |
|
486 | unset($this->dumpSettings['include-views'][$elem]); |
|
487 | } |
|
488 | } |
|
489 | } |
|
490 | ||
491 | // Listing all triggers from database |
|
492 | if (false === $this->dumpSettings['skip-triggers']) { |