Aplus Framework Dev Commands Library

ShowSchema extends DatabaseCommand
in package

Class ShowSchema.

Table of Contents

$database  : Database
$databaseInstance  : string
$description  : string
$options  : array<string|int, mixed>
getDatabase()  : Database
getTableList()  : array<int, array<string, string>>
run()  : void
setDatabase()  : static

Properties

$description

protected string $description = 'Shows database schema information.'

$options

protected array<string|int, mixed> $options = ['--instance' => 'Database instance name.']

Methods

getDatabase()

public getDatabase() : Database
Return values
Database

getTableList()

public getTableList(string $schema) : array<int, array<string, string>>
Parameters
$schema : string
Return values
array<int, array<string, string>>

run()

public run() : void
Return values
void

setDatabase()

public setDatabase() : static
Return values
static

Search results