ShowTable class

Framework\CLI\Commands\ShowTable

Class ShowTable.

Extends Framework\CLI\Commands\DatabaseCommand

Defined in libraries/dev-commands/src/ShowTable.php

Properties #

$description
-

$description

protected string $description = 'Shows a database table structure.'

Methods #

run()
-
getFields()
-
getForeignKeys()
-
getIndexes()
-
makeKeys()
-

run()

public function run(): void
Returns void

getFields()

protected function getFields(string $table): array
Parameters
  • string $table
Returns array

getForeignKeys()

protected function getForeignKeys(string $table): array
Parameters
  • string $table
Returns array

getIndexes()

protected function getIndexes(string $table): array
Parameters
  • string $table
Returns array

makeKeys()

protected function makeKeys(array $indexes): array
Parameters
  • array $indexes
Returns array

Inherited methods #