class Illuminate / Database / Console / DatabaseInspectionCommand
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.
abstract

DatabaseInspectionCommand

Extends

Properties

protected

$typeMappings array

A map of database column types.

Default: array
protected

$composer Composer

The Composer instance.

Default: null

Methods

public

__construct ( Composer $composer ) : void

Create a new command instance.

Parameters

protected

registerTypeMappings ( Doctrine\...\AbstractPlatform $platform ) : void

Register the custom Doctrine type mappings for inspection commands.

Parameters

  • $platform Doctrine\...\AbstractPlatform
protected

getPlatformName ( Doctrine\...\AbstractPlatform $platform , $database ) : string

Get a human-readable platform name for the given platform.

Parameters

  • $platform Doctrine\...\AbstractPlatform
  • $database string
protected

getTableSize ( ConnectionInterface $connection , string $table ) : int|null

Get the size of a table in bytes.

Parameters

protected

getMySQLTableSize ( ConnectionInterface $connection , string $table ) : mixed

Get the size of a MySQL table in bytes.

Parameters

protected

getPostgresTableSize ( ConnectionInterface $connection , string $table ) : mixed

Get the size of a Postgres table in bytes.

Parameters

protected

getSqliteTableSize ( ConnectionInterface $connection , string $table ) : mixed

Get the size of a SQLite table in bytes.

Parameters

protected

getConnectionCount ( ConnectionInterface $connection ) : int|null

Get the number of open connections for a database.

Parameters

protected

getConfigFromDatabase ( $database ) : array

Get the connection configuration details for the given connection.

Parameters

  • $database string
protected

ensureDependenciesExist ( ) : bool

Ensure the dependencies for the database commands are available.

protected

installDependencies ( ) : void

Install the command's dependencies.