DbImportCommand::execute

protected DbImportCommand::execute(InputInterface $input, OutputInterface $output) Executes the current command. This method is not abstract because you can use this class as a concrete class. In this case, instead of defining the execute() method, you set the code to execute by passing a Closure to the setCode() method. Parameters InputInterface $input An InputInterface instance: OutputInterface $output An OutputInterface instance: Return value null|int null or 0 if everything went fine, or

DbImportCommand::configure

protected DbImportCommand::configure() Configures the current command. Overrides DbCommandBase::configure File core/lib/Drupal/Core/Command/DbImportCommand.php, line 25 Class DbImportCommand Provides a command to import the current database from a script. Namespace Drupal\Core\Command Code protected function configure() { parent::configure(); $this->setName('import') ->setDescription('Import database from a generation script.') ->addArgument('script', InputOption::

DbImportCommand

Provides a command to import the current database from a script. This script runs on databases exported using using one of the database dump commands and imports it into the current database connection. Hierarchy class \Symfony\Component\Console\Command\Commandclass \Drupal\Core\Command\DbCommandBaseclass \Drupal\Core\Command\DbImportCommand See also \Drupal\Core\Command\DbImportApplication File core/lib/Drupal/Core/Command/DbImportCommand.php, line 20 Namespace Drupal\Core\Command

DbDumpCommand::getTemplate

protected DbDumpCommand::getTemplate() The script template. Return value string The template for the generated PHP script. File core/lib/Drupal/Core/Command/DbDumpCommand.php, line 372 Class DbDumpCommand Provides a command to dump the current database to a script. Namespace Drupal\Core\Command Code protected function getTemplate() { // The template contains an instruction for the file to be ignored by PHPCS. // This is because the files can be huge and coding standards are // i

DbDumpCommand::getTableScript

protected DbDumpCommand::getTableScript($table, array $schema, array $data) The part of the script for each table. Parameters string $table: Table name. array $schema: Drupal schema definition. array $data: Data for the table. Return value string The table create statement, and if there is data, the insert command. File core/lib/Drupal/Core/Command/DbDumpCommand.php, line 409 Class DbDumpCommand Provides a command to dump the current database to a script. Namespace Drupal\Core\Command

DbDumpCommand::getTableSchema

protected DbDumpCommand::getTableSchema(Connection $connection, $table) Returns a schema array for a given table. @todo This implementation is hard-coded for MySQL. Parameters \Drupal\Core\Database\Connection $connection: The database connection to use. string $table: The table name. Return value array A schema array (as defined by hook_schema()). File core/lib/Drupal/Core/Command/DbDumpCommand.php, line 136 Class DbDumpCommand Provides a command to dump the current database to a script.

DbDumpCommand::getTables

protected DbDumpCommand::getTables(Connection $connection) Returns a list of tables, not including those set to be excluded. Parameters \Drupal\Core\Database\Connection $connection: The database connection to use. Return value array An array of table names. An array of table names. File core/lib/Drupal/Core/Command/DbDumpCommand.php, line 108 Class DbDumpCommand Provides a command to dump the current database to a script. Namespace Drupal\Core\Command Code protected function getTable

DbDumpCommand::getTableIndexes

protected DbDumpCommand::getTableIndexes(Connection $connection, $table, &$definition) Adds primary key, unique keys, and index information to the schema. Parameters \Drupal\Core\Database\Connection $connection: The database connection to use. string $table: The table to find indexes for. array &$definition: The schema definition to modify. File core/lib/Drupal/Core/Command/DbDumpCommand.php, line 221 Class DbDumpCommand Provides a command to dump the current database to a script.

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/DbDumpCommand.php, line 279 Class DbDumpCommand Provides a command to dump the current database to a script.

DbDumpCommand::getTableCollation

protected DbDumpCommand::getTableCollation(Connection $connection, $table, &$definition) Set the table collation. Parameters \Drupal\Core\Database\Connection $connection: The database connection to use. string $table: The table to find indexes for. array &$definition: The schema definition to modify. File core/lib/Drupal/Core/Command/DbDumpCommand.php, line 258 Class DbDumpCommand Provides a command to dump the current database to a script. Namespace Drupal\Core\Command Code p