Skip to content

Commit ab2cbd0

Browse files
author
vc-urvin
committed
Update the summary command
1 parent fa2e606 commit ab2cbd0

File tree

3 files changed

+13
-29
lines changed

3 files changed

+13
-29
lines changed

src/Commands/DBSummaryCommand.php

+12-13
Original file line numberDiff line numberDiff line change
@@ -28,19 +28,18 @@ class DBSummaryCommand extends Command
2828
* Execute the console command.
2929
*/
3030
public function handle()
31-
{
32-
$this->getConfig();
33-
// $this->table(
34-
// ['Database Name', 'Size', 'Table Count', 'Engin', 'Character Set'],
35-
// [[
36-
// $this->getDatabaseName(),
37-
// $this->getDatabaseSize(),
38-
// count($this->getTableList()),
39-
// $this->getDatabaseEngin(),
40-
// $this->getCharacterSetName()
41-
// ]]
42-
// );
31+
{
32+
$this->table(
33+
['Database Name', 'Size', 'Table Count', 'Engin', 'Character Set'],
34+
[[
35+
$this->getDatabaseName(),
36+
$this->getDatabaseSize(),
37+
count($this->getTableList()),
38+
$this->getDatabaseEngin(),
39+
$this->getCharacterSetName()
40+
]]
41+
);
4342

44-
// return self::SUCCESS;
43+
return self::SUCCESS;
4544
}
4645
}

src/Traits/DBConnection.php

-15
Original file line numberDiff line numberDiff line change
@@ -228,19 +228,4 @@ public function getCharacterSetName()
228228
}
229229
return Constant::NULL;
230230
}
231-
232-
public function getConfig()
233-
{
234-
$query = "SHOW VARIABLES";
235-
$result = DB::select($query);
236-
// innodb_buffer_pool_size
237-
// innodb_log_file_size
238-
// innodb_log_buffer_size
239-
// innodb_flush_log_at_trx_commit
240-
// max_connections
241-
// innodb_io_capacity
242-
// innodb_flush_method
243-
// innodb_thread_concurrency
244-
dd($result);
245-
}
246231
}

src/views/success_message.blade.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
( \___/ )
66
_________________ooo_\_____/______________________
77
/ \
8-
| {{ $message }} |
8+
| {{ $message }} |
99
\______________________________ooo_________________/
1010
| | |
1111
|_ | _|

0 commit comments

Comments
 (0)