WP_CLI\Utils
get_sql_dump_command()
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() get sql dump command code WP-CLI 2.13.0-alpha
function get_sql_dump_command() {
return 'mariadb' === get_db_type() ? 'mariadb-dump' : 'mysqldump';
}