3 from . import _mysql, cursors as cursors
4 from ._exceptions import (
5 DatabaseError as DatabaseError,
6 DataError as DataError,
8 IntegrityError as IntegrityError,
9 InterfaceError as InterfaceError,
10 InternalError as InternalError,
11 NotSupportedError as NotSupportedError,
12 OperationalError as OperationalError,
13 ProgrammingError as ProgrammingError,
19 def numeric_part(s): ...
21 class Connection(_mysql.connection):
27 def __init__(self, *args, **kwargs): ...
28 def __enter__(self): ...
29 def __exit__(self, exc_type, exc_value, traceback) -> None: ...
30 def autocommit(self, on) -> None: ...
31 def cursor(self, cursorclass: Any | None = ...): ...
32 def query(self, query) -> None: ...
33 def literal(self, o): ...
34 def begin(self) -> None: ...
35 def warning_count(self): ...
36 def set_character_set(self, charset) -> None: ...
37 def set_sql_mode(self, sql_mode) -> None: ...
38 def show_warnings(self): ...
48 NotSupportedError: Any