public function execute() { $tables = func_get_args(); $configLoader = $this->getConfigLoader(true); $dataSource = $this->getCurrentDataSourceId(); $conn = $this->getCurrentConnection(); $driver = $this->getCurrentQueryDriver(); if ($driver instanceof PDOMySQLDriver) { $status = new MySQLTableStatus($conn, $driver); $this->logger->info('Table Status:'); $rows = $status->queryDetails($tables); $this->displayRows($rows); $this->logger->newline(); $this->logger->info('Table Status Summary:'); $rows = $status->querySummary($tables); $this->displayRows($rows); } else { $this->logger->error('Driver not supported.'); } }