@@ 432-449 (lines=18) @@ | ||
429 | private function getDatabaseStructure() |
|
430 | { |
|
431 | // Listing all tables from database |
|
432 | if (empty($this->dumpSettings['include-tables'])) { |
|
433 | // include all tables for now, blacklisting happens later |
|
434 | foreach ($this->dbHandler->query($this->typeAdapter->show_tables($this->dbName)) as $row) { |
|
435 | array_push($this->tables, current($row)); |
|
436 | } |
|
437 | } else { |
|
438 | // include only the tables mentioned in include-tables |
|
439 | foreach ($this->dbHandler->query($this->typeAdapter->show_tables($this->dbName)) as $row) { |
|
440 | if (in_array(current($row), $this->dumpSettings['include-tables'], true)) { |
|
441 | array_push($this->tables, current($row)); |
|
442 | $elem = array_search( |
|
443 | current($row), |
|
444 | $this->dumpSettings['include-tables'] |
|
445 | ); |
|
446 | unset($this->dumpSettings['include-tables'][$elem]); |
|
447 | } |
|
448 | } |
|
449 | } |
|
450 | ||
451 | // Listing all views from database |
|
452 | if (empty($this->dumpSettings['include-views'])) { |
|
@@ 452-469 (lines=18) @@ | ||
449 | } |
|
450 | ||
451 | // Listing all views from database |
|
452 | if (empty($this->dumpSettings['include-views'])) { |
|
453 | // include all views for now, blacklisting happens later |
|
454 | foreach ($this->dbHandler->query($this->typeAdapter->show_views($this->dbName)) as $row) { |
|
455 | array_push($this->views, current($row)); |
|
456 | } |
|
457 | } else { |
|
458 | // include only the tables mentioned in include-tables |
|
459 | foreach ($this->dbHandler->query($this->typeAdapter->show_views($this->dbName)) as $row) { |
|
460 | if (in_array(current($row), $this->dumpSettings['include-views'], true)) { |
|
461 | array_push($this->views, current($row)); |
|
462 | $elem = array_search( |
|
463 | current($row), |
|
464 | $this->dumpSettings['include-views'] |
|
465 | ); |
|
466 | unset($this->dumpSettings['include-views'][$elem]); |
|
467 | } |
|
468 | } |
|
469 | } |
|
470 | ||
471 | // Listing all triggers from database |
|
472 | if (false === $this->dumpSettings['skip-triggers']) { |