function drush_sql_dump

8.0.x sql.drush.inc drush_sql_dump()
6.x sql.drush.inc drush_sql_dump($db_spec)
7.x sql.drush.inc drush_sql_dump()
3.x sql.drush.inc drush_sql_dump($db_spec = NULL)
4.x sql.drush.inc drush_sql_dump($db_spec = NULL)
5.x sql.drush.inc drush_sql_dump($db_spec = NULL)
master sql.drush.inc drush_sql_dump()

Build a mysqldump statement.

Parameters

db_spec: For D5/D6, a $db_url. For D7, a target in the default DB connection.

Return value

string A mysqldump statement that is ready for executing.

1 call to drush_sql_dump()
drush_sql_dump_execute in commands/sql/sql.drush.inc
Command callback. Outputs the entire Drupal database in SQL format using mysqldump.

File

commands/sql/sql.drush.inc, line 208
Drush sql commands

Code

function drush_sql_dump($db_spec = NULL) {
  return drush_sql_build_dump_command(drush_sql_get_table_selection(), $db_spec);
}