class_docstr: Engine spec for clickhouse-connect connector
code: def build_sqlalchemy_uri(
      cls,
      parameters: BasicParametersType,
      encrypted_extra: dict[str, str] | None = None,
  ) -> str:
      url_params = parameters.copy()
      if url_params.get("encryption"):
          query = parameters.get("query", {}).copy()
          query.update(cls.encryption_parameters)
          url_params["query"] = query
      if not url_params.get("database"):
          url_params["database"] = "__default__"
      url_params.pop("encryption", None)
      return str(
          URL.create(f"{cls.engine}+{cls.default_driver}", **url_params)
      )
  
imports: from __future__ import annotations
  import logging
  import re
  from datetime import datetime
  from typing import Any, cast, TYPE_CHECKING
  from flask import current_app
  from flask_babel import gettext
  from marshmallow import fields, Schema
  from marshmallow.validate import Range
  from sqlalchemy import types
  from sqlalchemy.engine.url import URL
  from urllib3.exceptions import NewConnectionError
  from superset.databases.utils import make_url_safe
  from superset.db_engine_specs.base import BaseEngineSpec, BasicParametersMixin, BasicParametersType, BasicPropertiesType
  from superset.db_engine_specs.exceptions import SupersetDBAPIDatabaseError
  from superset.errors import ErrorLevel, SupersetError, SupersetErrorType
  from superset.extensions import cache_manager
  from superset.utils.core import GenericDataType
  from superset.utils.hashing import md5_sha_from_str
  from superset.utils.network import is_hostname_valid, is_port_open
label_desc: Use image node_id 5 for calling the ClickHouseConnectEngineSpec obj's underlying member method code with example usage: obj.build_sqlalchemy_uri(cls, parameters, encrypted_extra) and returns: str