WP_CLI\Utils
get_sql_dump_command()
Returns the correct dump command based on the detected database type.
Хуков нет.
Возвращает
Строку. The appropriate dump command.
Использование
get_sql_dump_command();
Код get_sql_dump_command() get sql dump command WP-CLI 2.13.0-alpha
function get_sql_dump_command() {
return 'mariadb' === get_db_type() ? 'mariadb-dump' : 'mysqldump';
}