WP_CLI\Utils

get_sql_check_command()WP-CLI 1.0

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() code WP-CLI 2.13.0-alpha

function get_sql_check_command() {
	return 'mariadb' === get_db_type() ? 'mariadb-check' : 'mysqlcheck';
}