WP_CLI\Utils
get_sql_check_command()
Returns the correct check command based on the detected database type.
No Hooks.
Returns
String. The appropriate check command.
Usage
get_sql_check_command();
get_sql_check_command() get sql check command code WP-CLI 2.13.0-alpha
function get_sql_check_command() {
return 'mariadb' === get_db_type() ? 'mariadb-check' : 'mysqlcheck';
}