WP_CLI\Utils

get_sql_dump_command()WP-CLI 1.0

Returns the correct dump command based on the detected database type.

No Hooks.

Returns

String. The appropriate dump command.

Usage

get_sql_dump_command();

get_sql_dump_command() code WP-CLI 2.13.0-alpha

function get_sql_dump_command() {
	return 'mariadb' === get_db_type() ? 'mariadb-dump' : 'mysqldump';
}