DbDumpCommand::getFieldOrder

protected DbDumpCommand::getFieldOrder(Connection $connection, $table) Gets field ordering for a given table. Parameters \Drupal\Core\Database\Connection $connection: The database connection to use. string $table: The table name. Return value string The order string to append to the query. File core/lib/Drupal/Core/Command/DbDumpCommand.php, line 345 Class DbDumpCommand Provides a command to dump the current database to a script. Namespace Drupal\Core\Command Code protected function

DbDumpCommand::generateScript

protected DbDumpCommand::generateScript(Connection $connection, array $schema_only = []) Generates the database script. Parameters \Drupal\Core\Database\Connection $connection: The database connection to use. array $schema_only: Table patterns for which to only dump the schema, no data. Return value string The PHP script. The PHP script. File core/lib/Drupal/Core/Command/DbDumpCommand.php, line 75 Class DbDumpCommand Provides a command to dump the current database to a script. Namespac

DbDumpCommand::fieldTypeMap

protected DbDumpCommand::fieldTypeMap(Connection $connection, $type) Given a database field type, return a Drupal type. Parameters \Drupal\Core\Database\Connection $connection: The database connection to use. string $type: The MySQL field type. Return value string The Drupal schema field type. If there is no mapping, the original field type is returned. File core/lib/Drupal/Core/Command/DbDumpCommand.php, line 301 Class DbDumpCommand Provides a command to dump the current database to a s

DbDumpCommand::fieldSizeMap

protected DbDumpCommand::fieldSizeMap(Connection $connection, $type) Given a database field type, return a Drupal size. Parameters \Drupal\Core\Database\Connection $connection: The database connection to use. string $type: The MySQL field type. Return value string The Drupal schema field size. File core/lib/Drupal/Core/Command/DbDumpCommand.php, line 321 Class DbDumpCommand Provides a command to dump the current database to a script. Namespace Drupal\Core\Command Code protected funct

DbDumpCommand::execute

protected DbDumpCommand::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 an

DbDumpCommand::configure

protected DbDumpCommand::configure() Configures the current command. Overrides DbCommandBase::configure File core/lib/Drupal/Core/Command/DbDumpCommand.php, line 41 Class DbDumpCommand Provides a command to dump the current database to a script. Namespace Drupal\Core\Command Code protected function configure() { $this->setName('dump-database-d8-mysql') ->setDescription('Dump the current database to a generation script') ->addOption('schema-only', NULL, InputOption::V

DbDumpCommand::$excludeTables

An array of table patterns to exclude completely. This excludes any lingering simpletest tables generated during test runs. Type: array File core/lib/Drupal/Core/Command/DbDumpCommand.php, line 36 Class DbDumpCommand Provides a command to dump the current database to a script. Namespace Drupal\Core\Command Code protected $excludeTables = ['test[0-9]+'];

DbDumpCommand

Provides a command to dump the current database to a script. This script exports all tables in the given database, and all data (except for tables denoted as schema-only). The resulting script creates the tables and populates them with the exported data. @todo This command is currently only compatible with MySQL. Making it backend-agnostic will require \Drupal\Core\Database\Schema support the ability to retrieve table schema information. Note that using a raw SQL dump file here (eg, generated f

DbDumpApplication::getDefinition

public DbDumpApplication::getDefinition() Overridden so the application doesn't expect the command name as the first argument. Overrides Application::getDefinition File core/lib/Drupal/Core/Command/DbDumpApplication.php, line 36 Class DbDumpApplication Provides a command to dump a database generation script. Namespace Drupal\Core\Command Code public function getDefinition() { $definition = parent::getDefinition(); // Clears the normal first argument (the command name). $definiti

DbDumpApplication::getDefaultCommands

protected DbDumpApplication::getDefaultCommands() Gets the default commands that should always be available. Return value Command[] An array of default Command instances Overrides Application::getDefaultCommands File core/lib/Drupal/Core/Command/DbDumpApplication.php, line 23 Class DbDumpApplication Provides a command to dump a database generation script. Namespace Drupal\Core\Command Code protected function getDefaultCommands() { // Even though this is a single command, keep the He