DbDumpCommand::getTableData

protected function DbDumpCommand::getTableData

protected DbDumpCommand::getTableData(Connection $connection, $table)

Gets all data from a given table.

If a table is set to be schema only, and empty array is returned.

Parameters

\Drupal\Core\Database\Connection $connection: The database connection to use.

string $table: The table to query.

Return value

array The data from the table as an array.

File

core/lib/Drupal/Core/Command/登录查看完整内容