public static function getStatementType(String $query) : Int
	{
		$type = 0;
		if (preg_match("/^SELECT|select|Select([^ ]+)/", $query)) {
			$type = 1;
		}

		if (preg_match("/^INSERT([^ ]+)/", $query)) {
			$type = 2;
		}

		if (preg_match("/^UPDATE([^ ]+)/", $query)) {
			$type = 3;
		}

		if (preg_match("/^DELETE([^ ]+)/", $query)) {
			$type = 4;
		}

		return $type;
	}