$connection =
$this->
getDatabaseConnection($input);
// If not explicitly set, disable ANSI which will break generated php.
if ($input->
hasParameterOption(['--ansi'
]) !== TRUE
) { $output->
setDecorated(FALSE
);
} $schema_tables =
$input->
getOption('schema-only'
);
$schema_tables =
explode(',',
$schema_tables);
$insert_count =
(int) $input->
getOption('insert-count'
);
$output->
writeln($this->
generateScript($connection,
$schema_tables,
$insert_count), OutputInterface::OUTPUT_RAW
);
return 0;
} /**
* Generates the database script.
*
* @param \Drupal\Core\Database\Connection $connection
* The database connection to use.
* @param array $schema_only
* Table patterns for which to only dump the schema, no data.
* @param int $insert_count
* The number of rows to insert in a single statement.
*
* @return string
* The PHP script.
*/