in mysql-connector-python/lib/mysql/connector/abstracts.py [0:0]
def __init__(self) -> None:
"""Initialize"""
# private (shouldn't be manipulated directly internally)
self.__charset_id: Optional[int] = None
"""It shouldn't be manipulated directly, even internally. If you need
to manipulate the charset ID, use the property `_charset_id` (read & write)
instead. Similarly, `_charset_id` shouldn't be manipulated externally,
in this case, use property `charset_id` (read-only).
"""
# protected (can be manipulated directly internally)
self._tracer: Any = None # opentelemetry related
self._span: Any = None # opentelemetry related
self.otel_context_propagation: bool = True # opentelemetry related
self._client_flags: int = ClientFlag.get_default()
self._sql_mode: Optional[str] = None
self._time_zone: Optional[str] = None
self._autocommit: bool = False
self._server_version: Optional[Tuple[int, ...]] = None
self._handshake: Optional[HandShakeType] = None
self._conn_attrs: Dict[str, str] = {}
self._user: str = ""
self._password: str = ""
self._password1: str = ""
self._password2: str = ""
self._password3: str = ""
self._database: str = ""
self._host: str = "127.0.0.1"
self._port: int = 3306
self._unix_socket: Optional[str] = None
self._client_host: str = ""
self._client_port: int = 0
self._ssl: Dict[str, Optional[Union[str, bool, List[str]]]] = {}
self._ssl_disabled: bool = DEFAULT_CONFIGURATION["ssl_disabled"]
self._force_ipv6: bool = False
self._oci_config_file: Optional[str] = None
self._oci_config_profile: Optional[str] = None
self._webauthn_callback: Optional[Union[str, Callable[[str], None]]] = None
self._krb_service_principal: Optional[str] = None
self._openid_token_file: Optional[str] = None
self._use_unicode: bool = True
self._get_warnings: bool = False
self._raise_on_warnings: bool = False
self._connection_timeout: Optional[int] = DEFAULT_CONFIGURATION[
"connect_timeout"
]
self._read_timeout: Optional[int] = DEFAULT_CONFIGURATION["read_timeout"]
self._write_timeout: Optional[int] = DEFAULT_CONFIGURATION["write_timeout"]
self._buffered: bool = False
self._unread_result: bool = False
self._have_next_result: bool = False
self._raw: bool = False
self._in_transaction: bool = False
self._allow_local_infile: bool = DEFAULT_CONFIGURATION["allow_local_infile"]
self._allow_local_infile_in_path: Optional[str] = DEFAULT_CONFIGURATION[
"allow_local_infile_in_path"
]
self._prepared_statements: Any = None
self._query_attrs: Dict[str, BinaryProtocolType] = {}
self._ssl_active: bool = False
self._auth_plugin: Optional[str] = None
self._auth_plugin_class: Optional[str] = None
self._pool_config_version: Any = None
self.converter: Optional[MySQLConverter] = None
self._converter_class: Optional[Type[MySQLConverter]] = None
self._converter_str_fallback: bool = False
self._compress: bool = False
self._consume_results: bool = False
self._init_command: Optional[str] = None
self._character_set: CharacterSet = CharacterSet()
self._local_infile_filenames: Optional[Deque[str]] = None
"""Stores the filenames from `LOCAL INFILE` requests
found in the executed query."""
self._query: Optional[bytes] = None