getDatabaseName(); $output->writeln("Banco de Dados: {$dbName}"); $output->writeln("Driver: " . $connection->getDriverName()); $tables = $connection->select('SHOW TABLE STATUS'); $table = new Table($output); $table->setHeaders(['Tabela', 'Engine', 'Rows', 'Size (MB)', 'Collation']); foreach ($tables as $t) { $size = round(($t->Data_length + $t->Index_length) / 1024 / 1024, 2); $table->addRow([ $t->Name, $t->Engine, $t->Rows, $size, $t->Collation ]); } $table->render(); return Command::SUCCESS; } }